aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/js/scripts.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/js/scripts.js')
-rw-r--r--themes/default/js/scripts.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/default/js/scripts.js b/themes/default/js/scripts.js
index bcc5c1e63..25707880a 100644
--- a/themes/default/js/scripts.js
+++ b/themes/default/js/scripts.js
@@ -77,14 +77,14 @@ PwgWS.prototype = {
}
}
- if (this.options.method == "POST" )
- this.xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
- else
+ if (this.options.method != "POST" )
{
url += "&"+body;
body = null;
}
this.xhr.open(this.options.method, url, this.options.async);
+ if (this.options.method == "POST" )
+ this.xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
try {
this.xhr.send(body);
} catch(e) {