From 503de303d7019e5fa3d57f3d8051cff28baeb8d3 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Wed, 1 Mar 2023 23:56:43 +0100 Subject: Consider stream readable when EOS is reached. Fixes #1373 --- plugins/http-files/src/file_provider.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/http-files') 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 { -- cgit v1.2.3-70-g09d2