Skip to content

Commit df9beab

Browse files
CxResbourgeoa
andauthored
Update lib/handlers/put.js
Co-authored-by: Alain Bourgeois <alain.bourgeois10@gmail.com>
1 parent 12d3405 commit df9beab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/handlers/put.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async function putStream (req, res, next, stream = req) {
7979
// Fails with Append on existing resource
8080
if (!req.originalUrl.endsWith('.acl')) await checkPermission(req, resourceExists)
8181
await ldp.put(req, stream, getContentType(req.headers))
82-
res.sendStatus(returnStatus)
82+
res.sendStatus(resourceExists ? 204 : 201)
8383
return next()
8484
} catch (err) {
8585
err.message = 'Can\'t write file/folder: ' + err.message

0 commit comments

Comments
 (0)