Send Json content-type to avoid guessing

This commit is contained in:
Victor Dubiniuk 2014-10-28 20:23:15 +03:00
parent d7b06b635a
commit cf9fb6c809

View File

@ -86,6 +86,7 @@ runtime.log("Sending message to server: "+messageString);
// do the request // do the request
xhr.open('POST', args.url, true); xhr.open('POST', args.url, true);
xhr.setRequestHeader("Content-type","application/json");
if (token) { if (token) {
xhr.setRequestHeader("requesttoken", token); xhr.setRequestHeader("requesttoken", token);
} }