Unverified Commit 23240dd1 authored by alexpott's avatar alexpott

Issue #3083183 by larowlan, Wim Leers, acbramley: FunctionalJavaScript tests...

Issue #3083183 by larowlan, Wim Leers, acbramley: FunctionalJavaScript tests fail because newer versions of curl/selenium webdriver require additional headers

(cherry picked from commit 56895fda)
parent 93ddb313
......@@ -42,6 +42,11 @@ public function execute($requestMethod, $url, $parameters = NULL, $extraOptions
}
else {
$customHeaders[] = 'Content-Length: 0';
// Suppress "Transfer-Encoding: chunked" header automatically
// added by cURL that causes a 400 bad request (bad
// content-length).
$customHeaders[] = 'Transfer-Encoding:';
}
// Suppress "Expect: 100-continue" header automatically added by
......@@ -62,6 +67,11 @@ public function execute($requestMethod, $url, $parameters = NULL, $extraOptions
}
else {
$customHeaders[] = 'Content-Length: 0';
// Suppress "Transfer-Encoding: chunked" header automatically
// added by cURL that causes a 400 bad request (bad
// content-length).
$customHeaders[] = 'Transfer-Encoding:';
}
// Suppress "Expect: 100-continue" header automatically added by
......
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