8000 bug #40538 [HttpClient] remove using $http_response_header (nicolas-g… · symfony/symfony@602b520 · GitHub
[go: up one dir, main page]

Skip to content

Commit 602b520

Browse files
committed
bug #40538 [HttpClient] remove using $http_response_header (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpClient] remove using $http_response_header | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Spotted after reading https://wiki.php.net/rfc/deprecations_php_8_1#predefined_variable_http_response_header Commits ------- b78f1df [HttpClient] remove using $http_response_header
2 parents a2d534c + b78f1df commit 602b520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private function open(): void
137137

138138
// Send request and follow redirects when needed
139139
$this->handle = $h = fopen($url, 'r', false, $this->context);
140-
self::addResponseHeaders($http_response_header, $this->info, $this->headers, $this->info['debug']);
140+
self::addResponseHeaders(stream_get_meta_data($h)['wrapper_data'], $this->info, $this->headers, $this->info['debug']);
141141
$url = ($this->resolveRedirect)($this->multi, $this->headers['location'][0] ?? null, $this->context);
142142

143143
if (null === $url) {

0 commit comments

Comments
 (0)
0