We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4974bb7 commit 0c0a89aCopy full SHA for 0c0a89a
packages/sdk-middleware-http/src/http.js
@@ -113,9 +113,7 @@ export default function createHttpMiddleware({
113
JSON.stringify(request.body || undefined)
114
115
const requestHeader: HttpHeaders = { ...request.headers }
116
- if (
117
- !Object.prototype.hasOwnProperty.call(request.headers, 'Content-Type')
118
- ) {
+ if (!Object.prototype.hasOwnProperty.call(requestHeader, 'Content-Type')) {
119
requestHeader['Content-Type'] = 'application/json'
120
}
121
if (body) {
0 commit comments