From 1032dc49d788b181ca7b2299f0cc80cc8b12dacf Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Thu, 25 Sep 2014 00:37:48 -0400 Subject: [PATCH] revert until I figure out what's breaking --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index 57ae1850..be86fc48 100644 --- a/mithril.js +++ b/mithril.js @@ -857,7 +857,7 @@ Mithril = m = new function app(window, undefined) { 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") } if (typeof options.config == "function") {