diff --git a/lib/handlers/patch.js b/lib/handlers/patch.js index 5dac51d3..15535e91 100644 --- a/lib/handlers/patch.js +++ b/lib/handlers/patch.js @@ -39,7 +39,6 @@ function contentForNew (contentType) { // Handles a PATCH request async function patchHandler (req, res, next) { debug(`PATCH -- ${req.originalUrl}`) - res.header('MS-Author-Via', 'SPARQL') try { // Obtain details of the target resource const ldp = req.app.locals.ldp @@ -70,7 +69,7 @@ async function patchHandler (req, res, next) { if (!parsePatch) { throw error(415, `Unsupported patch content type: ${patch.contentType}`) } - + res.header('Accept-Patch', patch.contentType) // is this needed ? // Parse the patch document and verify permissions const patchObject = await parsePatch(url, patch.uri, patch.text) await checkPermission(req, patchObject, resourceExists)