diff options
author | Marvin W <git@larma.de> | 2023-03-01 23:56:43 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2023-03-02 00:02:35 +0100 |
commit | 503de303d7019e5fa3d57f3d8051cff28baeb8d3 (patch) | |
tree | 70ca6f343994f5fca3f1276face5a1bafba916b6 /plugins | |
parent | 74ca991ddf89a1ff9096303ab64ac861003c492f (diff) | |
download | dino-503de303d7019e5fa3d57f3d8051cff28baeb8d3.tar.gz dino-503de303d7019e5fa3d57f3d8051cff28baeb8d3.zip |
Consider stream readable when EOS is reached.
Fixes #1373
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/http-files/src/file_provider.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/http-files/src/file_provider.vala b/plugins/http-files/src/file_provider.vala index 1433a74f..98c1d95c 100644 --- a/plugins/http-files/src/file_provider.vala +++ b/plugins/http-files/src/file_provider.vala @@ -66,7 +66,7 @@ public class FileProvider : Dino.FileProvider, Object { public bool is_readable() { if (!can_poll()) throw new IOError.NOT_SUPPORTED("Stream is not pollable"); - return ((PollableInputStream)inner).is_readable(); + return remaining_size <= 0 || ((PollableInputStream)inner).is_readable(); } private ssize_t check_limit(ssize_t read) throws IOError { |