Merge pull request #9408 from glaubinix/f/rfs-empty-response
RemoteFileSystem: don't throw zlib error on empty responsepull/9413/head
commit
70add1867c
|
@ -823,7 +823,7 @@ class RemoteFilesystem
|
||||||
$result = file_get_contents('compress.zlib://data:application/octet-stream;base64,'.base64_encode($result));
|
$result = file_get_contents('compress.zlib://data:application/octet-stream;base64,'.base64_encode($result));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$result) {
|
if ($result === false) {
|
||||||
throw new TransportException('Failed to decode zlib stream');
|
throw new TransportException('Failed to decode zlib stream');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue