From 6019d70382eed3efcfd94c6d864edcfa66f1bbb1 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 23 Sep 2015 09:06:44 -0400 Subject: [PATCH] ammend mod panel js more --- contrib/static/mod.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/static/mod.js b/contrib/static/mod.js index 63f7e3e..0d76c2d 100644 --- a/contrib/static/mod.js +++ b/contrib/static/mod.js @@ -160,7 +160,8 @@ function nntpchan_mod(mod_action) { ajax.open(mod_action.method || "GET", url); var data = mod_action.data; if (data) { - ajax.send(data); + ajax.setRequestHeader("Content-type","text/json"); + ajax.send(json.Stringify(data)); } else { ajax.send(); }