Skip to content
Snippets Groups Projects
Unverified Commit 56895fda 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
parent 7dfe3876
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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