From 8e508f287168577256d313bf6302ac0112912727 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Wed, 1 Mar 2023 23:56:43 +0100 Subject: [PATCH] Consider stream readable when EOS is reached. Fixes #1373 --- plugins/http-files/src/file_provider.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {