aboutsummaryrefslogtreecommitdiff
path: root/plugins/http-files/src/file_provider.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2023-03-01 23:56:43 +0100
committerMarvin W <git@larma.de>2023-03-02 00:02:35 +0100
commit503de303d7019e5fa3d57f3d8051cff28baeb8d3 (patch)
tree70ca6f343994f5fca3f1276face5a1bafba916b6 /plugins/http-files/src/file_provider.vala
parent74ca991ddf89a1ff9096303ab64ac861003c492f (diff)
downloaddino-503de303d7019e5fa3d57f3d8051cff28baeb8d3.tar.gz
dino-503de303d7019e5fa3d57f3d8051cff28baeb8d3.zip
Consider stream readable when EOS is reached.
Fixes #1373
Diffstat (limited to 'plugins/http-files/src/file_provider.vala')
-rw-r--r--plugins/http-files/src/file_provider.vala2
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 {