summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-12-12 05:57:02 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-12-12 05:57:02 +0000
commit3fa1e2b6f74f5e32f4a4e7c2fb2965f4eea66433 (patch)
treea899c75d2fab0b733742107ff2c8774fc6acdfe8 /misc
parent59fe44368fceec76cd0c177b725cd2572ad7ef63 (diff)
downloadbrdo-3fa1e2b6f74f5e32f4a4e7c2fb2965f4eea66433.tar.gz
brdo-3fa1e2b6f74f5e32f4a4e7c2fb2965f4eea66433.tar.bz2
#82690: Fix HTTP 411/406 problem with progress.js
Diffstat (limited to 'misc')
-rw-r--r--misc/progress.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/progress.js b/misc/progress.js
index 3fa4c629c..221aca6a7 100644
--- a/misc/progress.js
+++ b/misc/progress.js
@@ -66,9 +66,12 @@ Drupal.progressBar.prototype.sendPing = function () {
}
if (this.uri) {
var pb = this;
+ // When doing a post request, you need non-null data. Otherwise a
+ // HTTP 411 or HTTP 406 (with Apache mod_security) error may result.
$.ajax({
type: this.method,
url: this.uri,
+ data: '',
success: function (data) {
// Parse response
var progress = Drupal.parseJson(data);