From ab0545f1c8d1967dcc3aad8f481375007ac8588f Mon Sep 17 00:00:00 2001 From: bourgeoa Date: Mon, 5 Feb 2024 17:59:04 +0100 Subject: [PATCH] cleaning --- lib/handlers/patch.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/handlers/patch.js b/lib/handlers/patch.js index 5dac51d3d..15535e917 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)