Send Json content-type to avoid guessing
This commit is contained in:
parent
d7b06b635a
commit
cf9fb6c809
@ -81,11 +81,12 @@ define("webodf/editor/server/pullbox/Server", [], function () {
|
|||||||
cbError(0, xhr.statusText);
|
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
|
// create body data for request from metadata and payload
|
||||||
|
|
||||||
// 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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user