revert until I figure out what's breaking
This commit is contained in:
parent
99c079dbfc
commit
1032dc49d7
1 changed files with 1 additions and 1 deletions
|
|
@ -857,7 +857,7 @@ Mithril = m = new function app(window, undefined) {
|
||||||
else options.onerror({type: "error", target: xhr})
|
else options.onerror({type: "error", target: xhr})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (options.serialize == JSON.stringify && options.data && options.method != "GET") {
|
if (options.serialize == JSON.stringify && options.method != "GET") {
|
||||||
xhr.setRequestHeader("Content-Type", "application/json; charset=utf-8")
|
xhr.setRequestHeader("Content-Type", "application/json; charset=utf-8")
|
||||||
}
|
}
|
||||||
if (typeof options.config == "function") {
|
if (typeof options.config == "function") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue