diff options
| author | Marvin W <git@larma.de> | 2023-03-01 23:56:43 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-10 23:40:46 +0100 |
| commit | c13d635b0299d95c6d18518bbdf80f308c6f173c (patch) | |
| tree | 33f7c2097d89d0c25926f994b52c28c1db9b5f36 | |
| parent | 4641763e0a22d74205d81907b7459280d43d504d (diff) | |
Consider stream readable when EOS is reached.
Fixes #1373
| -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 734ab102..0909073e 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 { |
