Skip to content

Commit f764091

Browse files
fix: batch header concatenation (#2233)
1 parent 0735218 commit f764091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Batch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private function parseRawHeaders($rawHeaders)
207207
list($header, $value) = explode(': ', $headerLine, 2);
208208
$header = strtolower($header);
209209
if (isset($headers[$header])) {
210-
$headers[$header] .= "\n" . $value;
210+
$headers[$header] = array_merge((array)$headers[$header], (array)$value);
211211
} else {
212212
$headers[$header] = $value;
213213
}

0 commit comments

Comments
 (0)