[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:
parent
e87b868307
commit
3ad126cdf2
1 changed files with 1 additions and 0 deletions
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in a new issue