Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 4a957e0

Browse files
committed
Ensure we only store the _values_ of arrays provided as headers
Doing so ensures that when we merge values via `withAddedHeader()`, we retain the original values when key collissions might normally occur. Fixes compatibility with PSR-7.
1 parent ee4bcdc commit 4a957e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MessageTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ private function filterHeaderValue($values)
396396
HeaderSecurity::assertValid($value);
397397

398398
return (string) $value;
399-
}, $values);
399+
}, array_values($values));
400400
}
401401

402402
/**

0 commit comments

Comments
 (0)