Commit 3fa1e2b6 authored by Steven Wittens's avatar Steven Wittens
Browse files

#82690: Fix HTTP 411/406 problem with progress.js

parent 59fe4436
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment