mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-29 11:58:23 +01:00
[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
@ -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…
x
Reference in New Issue
Block a user