Skip to content

Commit 562e8d5

Browse files
author
Sefi Krausz
committed
index.js changes
1 parent 9334ac7 commit 562e8d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ HTTPSnippet.prototype.prepare = function (request) {
120120
let contentType
121121
const headers = get(request, 'headers')
122122
if (headers && headers.length > 0) {
123-
const contentHeader = headers.find(header => header.name === 'Content-Type')
123+
const contentHeader = headers.find(header => header.name === 'Content-Type' || header.name === 'content-type')
124124
contentType = get(contentHeader, 'value')
125125
}
126126
switch (request.postData.mimeType) {

0 commit comments

Comments
 (0)