Bundled commit for 0ce3aa066a [skip ci]

This commit is contained in:
Isiah Meadows 2019-05-31 12:07:35 -04:00
parent 0ce3aa066a
commit 06e94e5206
2 changed files with 2 additions and 2 deletions

View file

@ -395,7 +395,7 @@ var _12 = function($window, Promise) {
_abort.call(xhr) _abort.call(xhr)
} }
xhr.open(method, url, args.async !== false, typeof args.user === "string" ? args.user : undefined, typeof args.password === "string" ? args.password : undefined) xhr.open(method, url, args.async !== false, typeof args.user === "string" ? args.user : undefined, typeof args.password === "string" ? args.password : undefined)
if (assumeJSON && !hasHeader(args, /^content-type0$/i)) { if (assumeJSON && body != null && !hasHeader(args, /^content-type0$/i)) {
xhr.setRequestHeader("Content-Type", "application/json; charset=utf-8") xhr.setRequestHeader("Content-Type", "application/json; charset=utf-8")
} }
if (typeof args.deserialize !== "function" && !hasHeader(args, /^accept$/i)) { if (typeof args.deserialize !== "function" && !hasHeader(args, /^accept$/i)) {

2
mithril.min.js vendored

File diff suppressed because one or more lines are too long