Skip to content

Commit ab0545f

Browse files
committed
cleaning
1 parent 777d037 commit ab0545f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/handlers/patch.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ function contentForNew (contentType) {
3939
// Handles a PATCH request
4040
async function patchHandler (req, res, next) {
4141
debug(`PATCH -- ${req.originalUrl}`)
42-
res.header('MS-Author-Via', 'SPARQL')
4342
try {
4443
// Obtain details of the target resource
4544
const ldp = req.app.locals.ldp
@@ -70,7 +69,7 @@ async function patchHandler (req, res, next) {
7069
if (!parsePatch) {
7170
throw error(415, `Unsupported patch content type: ${patch.contentType}`)
7271
}
73-
72+
res.header('Accept-Patch', patch.contentType) // is this needed ?
7473
// Parse the patch document and verify permissions
7574
const patchObject = await parsePatch(url, patch.uri, patch.text)
7675
await checkPermission(req, patchObject, resourceExists)

0 commit comments

Comments
 (0)