summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--itjs/loader.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/itjs/loader.js b/itjs/loader.js
index 8a22e95..33cd27b 100644
--- a/itjs/loader.js
+++ b/itjs/loader.js
@@ -101,6 +101,9 @@ load: function(baseurl, pos, num, query_volatile, retry)
if (this.loader)
{
+ if (this.method == "POST")
+ this.loader.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
+
this.starttime = new Date().getTime();
this.retry = retry;
this.loader.send(this.post_data);