Skip to content

Commit c579254

Browse files
[HttpClient] remove using $http_response_header
1 parent 67c5af7 commit c579254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)