From 8a8914492f54150eecd95780f6c5b854c97c9967 Mon Sep 17 00:00:00 2001 From: Thomas BrĂ¼derli Date: Wed, 22 Nov 2006 14:54:54 +0000 Subject: Send content-type header with POST requests --- itjs/loader.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'itjs/loader.js') 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); -- cgit v1.2.3