Skip to content

Commit d776c20

Browse files
committed
Fix incorrect response content type being passed in HEAD
1 parent 2af9560 commit d776c20

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/handlers/get.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ async function handler (req, res, next) {
7575
// Till here it must exist
7676
if (!includeBody) {
7777
debug('HEAD only')
78-
const mappedFile = await ldp.resourceMapper.mapFileToUrl({ path })
79-
contentType = mappedFile.contentType
80-
res.setHeader('Content-Type', contentType)
78+
res.setHeader('Content-Type', ret.contentType)
8179
res.status(200).send('OK')
8280
return next()
8381
}

0 commit comments

Comments
 (0)