Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgeoa committed Feb 5, 2024
1 parent 777d037 commit ab0545f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/handlers/patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ab0545f

Please sign in to comment.