Bundled commit for 0ce3aa066a [skip ci]
This commit is contained in:
parent
0ce3aa066a
commit
06e94e5206
2 changed files with 2 additions and 2 deletions
|
|
@ -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
2
mithril.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue