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

@ -81,11 +81,12 @@ define("webodf/editor/server/pullbox/Server", [], function () {
cbError(0, xhr.statusText);
}
runtime.log("Sending message to server: "+messageString);
runtime.log("Sending message to server: "+messageString);
// create body data for request from metadata and payload
// do the request
xhr.open('POST', args.url, true);
xhr.setRequestHeader("Content-type","application/json");
if (token) {
xhr.setRequestHeader("requesttoken", token);
}