[core] Add headers to file_get_contents (#1623)

Add response headers to file_get_contents() method. Headers are used by some bridges.
This commit is contained in:
triatic 2020-06-25 11:22:05 +01:00 committed by GitHub
parent e87b868307
commit 3ad126cdf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = '';