Skip to content

Commit 47b233f

Browse files
committed
Fix $http_response_header deprecation
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
1 parent 6c6fa51 commit 47b233f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

libraries/classes/Utils/HttpRequest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ private function fopen(
267267
stream_context_create($context)
268268
);
269269

270+
if (function_exists('http_get_last_response_headers')) {
271+
$http_response_header = http_get_last_response_headers();
272+
}
273+
270274
if (! isset($http_response_header)) {
271275
return null;
272276
}

0 commit comments

Comments
 (0)