Skip to content

Commit c0d4d32

Browse files
bnpatel1990DavertMik
authored andcommitted
Header Enhancements (#4541)
* Header Enhancements * Doc Updates for HaveHttpHeader
1 parent 2e53cd5 commit c0d4d32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Lib/Connector/Guzzle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ protected function extractHeaders(BrowserKitRequest $request)
216216

217217
$contentHeaders = ['Content-Length' => true, 'Content-Md5' => true, 'Content-Type' => true];
218218
foreach ($server as $header => $val) {
219-
$header = implode('-', array_map('ucfirst', explode('-', strtolower(str_replace('_', '-', $header)))));
219+
$header = html_entity_decode(implode('-', array_map('ucfirst', explode('-', strtolower(str_replace('_', '-', $header))))), ENT_NOQUOTES);
220220
if (strpos($header, 'Http-') === 0) {
221221
$headers[substr($header, 5)] = $val;
222222
} elseif (isset($contentHeaders[$header])) {

0 commit comments

Comments
 (0)