Skip to content

Commit 5b91d8d

Browse files
committed
Changes while reviewing
1 parent ce0edc3 commit 5b91d8d

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

rest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const checkPatchOverrideSupport = function (req, res) {
3232
* - Skips validation for methods that don't carry bodies (GET, HEAD, OPTIONS, DELETE)
3333
* - Allows text/plain for /search endpoints (which accept plain text search terms)
3434
* - Requires application/json or application/ld+json for all other write endpoints
35-
* - Returns 400 for missing Content-Type, 415 for unsupported Content-Type
35+
* - Returns 415 for missing or unsupported Content-Type
3636
*
3737
* @param {Object} req - Express request object
3838
* @param {Object} res - Express response object

routes/__tests__/contentType.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { jest } from "@jest/globals"
21
import express from "express"
32
import request from "supertest"
43
import rest from '../../rest.js'

0 commit comments

Comments
 (0)