Skip to content

Commit 794c8a0

Browse files
committed
Merge remote-tracking branch 'anzin/php8-compatibility/fix-web-api-tests-to-be-comptaible-with-php8' into platform-health
2 parents 2d0ce7c + cc1619d commit 794c8a0

File tree

1 file changed

+13
-0
lines changed
  • dev/tests/api-functional/framework/Magento/TestFramework/Authentication/Rest

1 file changed

+13
-0
lines changed

dev/tests/api-functional/framework/Magento/TestFramework/Authentication/Rest/CurlClient.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,17 @@ public function retrieveResponse(
2424
$this->setCurlParameters([CURLOPT_FAILONERROR => true]);
2525
return parent::retrieveResponse($endpoint, $requestBody, $extraHeaders, $method);
2626
}
27+
28+
/**
29+
* @inheritdoc
30+
*/
31+
public function normalizeHeaders(&$headers)
32+
{
33+
array_walk(
34+
$headers,
35+
function (&$val, $key) {
36+
$val = ucfirst(strtolower($key)) . ': ' . $val;
37+
}
38+
);
39+
}
2740
}

0 commit comments

Comments
 (0)