diff options
| author | 2017-04-22 13:35:51 +0200 | |
|---|---|---|
| committer | 2017-04-22 13:35:51 +0200 | |
| commit | 9588112e504785f024b9efaab4f3a2cfb176f8ef (patch) | |
| tree | 6a0b0da9ebdb0bbfdf90bb747eae6bcdbecd1259 /lib/Favicon/DataAccess.php | |
| parent | ca4138d0217f699050f80aa6bfb37e121ebec9a6 (diff) | |
Re-apply Favicon FreshRSS patches
Patches sent upstream https://github.com/ArthurHoaro/favicon/pull/5
Diffstat (limited to 'lib/Favicon/DataAccess.php')
| -rw-r--r-- | lib/Favicon/DataAccess.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Favicon/DataAccess.php b/lib/Favicon/DataAccess.php index 2bfdf640e..838df66c3 100644 --- a/lib/Favicon/DataAccess.php +++ b/lib/Favicon/DataAccess.php @@ -15,7 +15,8 @@ class DataAccess { public function retrieveHeader($url) { $this->set_context(); - return @get_headers($url, TRUE); + $headers = @get_headers($url, 1); + return is_array($headers) ? array_change_key_case($headers) : array(); } public function saveCache($file, $data) { |
