Archived
1
0
This commit is contained in:
Jeff Becker 2016-04-12 19:41:38 -04:00
parent 5530ae113e
commit 411230f48a
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -202,10 +202,11 @@ function nntpchan_mod(mod_action, result_elem) {
}
}
}
ajax.setRequestHeader("X-CSRF-Token", csrf);
if (mod_action.name) {
var url = mod_action.name + "/" + target;
ajax.open(mod_action.method || "GET", url);
ajax.setRequestHeader("X-CSRF-Token", csrf);
var data = mod_action.data;
if (data) {
ajax.setRequestHeader("Content-type","text/json");