Commit 5e488845 5e488845fa9cd9f8368a25eacd3c0b8f361bd69c by Nicolas Perriault

proper headers sent by ClientUtils.sendAJAX()

1 parent eb98da17
...@@ -644,7 +644,7 @@ ...@@ -644,7 +644,7 @@
644 } else if (typeof data === "string") { 644 } else if (typeof data === "string") {
645 dataString = data; 645 dataString = data;
646 } 646 }
647 xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 647 xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
648 } 648 }
649 xhr.send(method === "POST" ? dataString : null); 649 xhr.send(method === "POST" ? dataString : null);
650 return xhr.responseText; 650 return xhr.responseText;
......