summaryrefslogtreecommitdiff
path: root/itjs/loader.js
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2006-11-22 14:54:54 +0000
committerThomas BrĂ¼derli2006-11-22 14:54:54 +0000
commit8a8914492f54150eecd95780f6c5b854c97c9967 (patch)
treec73dba42c62c79a4beabe7c420ab753397f6382c /itjs/loader.js
parentb097d8786f3e67d098ec274ac3ae182860943112 (diff)
downloaditools-8a8914492f54150eecd95780f6c5b854c97c9967.tar.gz
itools-8a8914492f54150eecd95780f6c5b854c97c9967.tar.bz2
itools-8a8914492f54150eecd95780f6c5b854c97c9967.zip
Send content-type header with POST requests
Diffstat (limited to 'itjs/loader.js')
-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);