From 3ad126cdf25950c4672fa95ff41c0cc76535b3fc Mon Sep 17 00:00:00 2001 From: triatic <42704418+triatic@users.noreply.github.com> Date: Thu, 25 Jun 2020 11:22:05 +0100 Subject: [PATCH] [core] Add headers to file_get_contents (#1623) Add response headers to file_get_contents() method. Headers are used by some bridges. --- lib/contents.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/contents.php b/lib/contents.php index b1e31285..03764af9 100644 --- a/lib/contents.php +++ b/lib/contents.php @@ -82,6 +82,7 @@ function getContents($url, $header = array(), $opts = array(), $returnHeader = f $errorCode = 500; } else { $errorCode = 200; + $retVal['header'] = implode("\r\n", $http_response_header); } $curlError = '';