From c5792548d38c4cc38f1059dd2ce2301258ec4cb8 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 22 Mar 2021 10:43:50 +0100 Subject: [PATCH] [HttpClient] remove using $http_response_header --- Response/NativeResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Response/NativeResponse.php b/Response/NativeResponse.php index a3566ae..e87402f 100644 --- a/Response/NativeResponse.php +++ b/Response/NativeResponse.php @@ -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) {