1
0
Fork 0

Merge pull request #9408 from glaubinix/f/rfs-empty-response

RemoteFileSystem: don't throw zlib error on empty response
pull/9413/head
Jordi Boggiano 2020-11-03 17:13:25 +01:00 committed by GitHub
commit 70add1867c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -823,7 +823,7 @@ class RemoteFilesystem
$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');
}
}