Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 602b520

Browse filesBrowse 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
Copy full SHA for 602b520

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/Response/NativeResponse.php
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.