Skip to content
Snippets Groups Projects
Unverified Commit 23240dd1 authored by Alex Pott's avatar Alex Pott
Browse files

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
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment