Skip to content

Commit 06e94e5

Browse files
committed
Bundled commit for 0ce3aa0 [skip ci]
1 parent 0ce3aa0 commit 06e94e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mithril.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ var _12 = function($window, Promise) {
395395
_abort.call(xhr)
396396
}
397397
xhr.open(method, url, args.async !== false, typeof args.user === "string" ? args.user : undefined, typeof args.password === "string" ? args.password : undefined)
398-
if (assumeJSON && !hasHeader(args, /^content-type0$/i)) {
398+
if (assumeJSON && body != null && !hasHeader(args, /^content-type0$/i)) {
399399
xhr.setRequestHeader("Content-Type", "application/json; charset=utf-8")
400400
}
401401
if (typeof args.deserialize !== "function" && !hasHeader(args, /^accept$/i)) {

0 commit comments

Comments
 (0)