8000 [HttpClient] Fix setting duplicate-name headers when redirecting with… · symfony/symfony@5ff1db0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ff1db0

Browse files
[HttpClient] Fix setting duplicate-name headers when redirecting with AmpHttpClient
1 parent f1122a2 commit 5ff1db0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpClient/Response/AmpResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ private static function followRedirects(Request $originRequest, AmpClientState $
358358
}
359359

360360
foreach ($originRequest->getRawHeaders() as [$name, $value]) {
361-
$request->setHeader($name, < 4F16 span class="pl-s1">$value);
361+
$request->addHeader($name, $value);
362362
}
363363

364364
if ($request->getUri()->getAuthority() !== $originRequest->getUri()->getAuthority()) {

0 commit comments

Comments
 (0)
0