Created
January 4, 2021 11:50
-
-
Save kissarat/74e79988f7dc1811889c3a90e58495b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const notJSONContentType = { | |
$and: [{ | |
url: { | |
$ne: "/users/profile/orders/nearest" | |
}, | |
'headers.content-type': { | |
$not: { | |
$regex: '.*application.json.*' | |
} | |
} | |
}, { | |
'headers.content-type': { | |
$exists: 1 | |
} | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment