Skip to content

Commit

Permalink
[HttpClient] remove using $http_response_header
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Mar 22, 2021
1 parent 67c5af7 commit c579254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Response/NativeResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private function open(): void

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

if (null === $url) {
Expand Down

0 comments on commit c579254

Please sign in to comment.