We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9334ac7 commit 562e8d5Copy full SHA for 562e8d5
1 file changed
src/index.js
@@ -120,7 +120,7 @@ HTTPSnippet.prototype.prepare = function (request) {
120
let contentType
121
const headers = get(request, 'headers')
122
if (headers && headers.length > 0) {
123
- const contentHeader = headers.find(header => header.name === 'Content-Type')
+ const contentHeader = headers.find(header => header.name === 'Content-Type' || header.name === 'content-type')
124
contentType = get(contentHeader, 'value')
125
}
126
switch (request.postData.mimeType) {
0 commit comments