Skip to content

Commit eb08b27

Browse files
committed
Changes while reviewing
1 parent deeddc3 commit eb08b27

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

rest.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ const checkPatchOverrideSupport = function (req, res) {
3838
* @param {Object} res - Express response object
3939
* @param {Function} next - Express next middleware function
4040
*/
41-
const SKIP_CONTENT_TYPE_METHODS = ["GET", "HEAD", "OPTIONS", "DELETE"]
42-
4341
const validateContentType = function (req, res, next) {
42+
const SKIP_CONTENT_TYPE_METHODS = ["GET", "HEAD", "OPTIONS", "DELETE"]
4443
if (SKIP_CONTENT_TYPE_METHODS.includes(req.method)) {
4544
return next()
4645
}

0 commit comments

Comments
 (0)