Skip to content

Commit ec0490a

Browse files
committed
- force array for any header value
1 parent 1fc3fa8 commit ec0490a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

HeaderTrait.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,7 @@ protected function normalizeHeaderName(string $name): string
205205
*/
206206
protected function normalizeHeaderValue(string $name, mixed $value): array
207207
{
208-
// if (false === \is_array($value)) {
209-
$value = (array)$value;
210-
// }
208+
$value = (array)$value;
211209
try {
212210
if (empty($value = \array_map(fn($v): string => \trim(\preg_replace('/\s+/', ' ', $v)), $value))) {
213211
throw new \InvalidArgumentException(

0 commit comments

Comments
 (0)