Skip to content

Commit acc7151

Browse files
RubenVerborghdmitrizagidulin
authored andcommitted
Use "415 Unsupported Media Type" for unsupported patches.
1 parent a79d19d commit acc7151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/handlers/patch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function patchHandler (req, res, next) {
4242

4343
const patch = PATCHERS[patchContentType]
4444
if (!patch) {
45-
return next(error(400, 'Unknown patch content type: ' + patchContentType))
45+
return next(error(415, 'Unknown patch content type: ' + patchContentType))
4646
}
4747
patch(filename, targetURI, req.text, function (err, result) {
4848
if (err) {

0 commit comments

Comments
 (0)