Skip to content

Commit

Permalink
[core] Add headers to file_get_contents (#1623)
Browse files Browse the repository at this point in the history
Add response headers to file_get_contents() method. Headers are used by some bridges.
  • Loading branch information
triatic authored Jun 25, 2020
1 parent e87b868 commit 3ad126c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/contents.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 3ad126c

Please sign in to comment.