proper headers sent by ClientUtils.sendAJAX()
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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; | ... | ... |
-
Please register or sign in to post a comment