Skip to content

Commit baf7b46

Browse files
committed
Remove fallback to Turtle on GET
1 parent 1fad9d9 commit baf7b46

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/handlers/get.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ async function handler (req, res, next) {
2424
const path = res.locals.path || req.path
2525
const requestedType = negotiator.mediaType()
2626
let possibleRDFType = negotiator.mediaType(RDFs)
27-
// Fallback to text/turtle if content type is unknown
28-
possibleRDFType = (!possibleRDFType) ? 'text/turtle' : possibleRDFType
2927

3028
res.header('MS-Author-Via', 'SPARQL')
3129

test/integration/account-creation-oidc-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,10 @@ describe('Single User signup page', () => {
250250
fs.removeSync(rootDir)
251251
})
252252

253-
it('should return a 401 unauthorized without accept text/html', done => {
253+
it('should return a 406 not acceptable without accept text/html', done => {
254254
server.get('/')
255255
.set('accept', 'text/plain')
256-
.expect(401)
256+
.expect(406)
257257
.end(done)
258258
})
259259
})

0 commit comments

Comments
 (0)