Merge pull request #86 from rgarcia/patch-1
allow specification of raw query string for POST in ClientUtils.getBinary()
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -303,6 +303,8 @@ | ... | @@ -303,6 +303,8 @@ |
303 | } | 303 | } |
304 | dataString = dataList.join('&'); | 304 | dataString = dataList.join('&'); |
305 | this.log("getBinary(): Using request data: '" + dataString + "'", "debug"); | 305 | this.log("getBinary(): Using request data: '" + dataString + "'", "debug"); |
306 | } else if (typeof data === "string") { | ||
307 | dataString = data; | ||
306 | } | 308 | } |
307 | xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); | 309 | xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); |
308 | } | 310 | } | ... | ... |
-
Please register or sign in to post a comment