From 3fa1e2b6f74f5e32f4a4e7c2fb2965f4eea66433 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 12 Dec 2006 05:57:02 +0000 Subject: #82690: Fix HTTP 411/406 problem with progress.js --- misc/progress.js | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3