1
0
Fork 0

Dont try to gzip decode empty responses, refs #1846

pull/1850/head
Jordi Boggiano 2013-04-30 10:06:39 +02:00
parent c8f5b72166
commit e78a21015b
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class RemoteFilesystem
}
// decode gzip
if (false !== $result && extension_loaded('zlib') && substr($fileUrl, 0, 4) === 'http') {
if ($result && extension_loaded('zlib') && substr($fileUrl, 0, 4) === 'http') {
$decode = false;
foreach ($http_response_header as $header) {
if (preg_match('{^content-encoding: *gzip *$}i', $header)) {