From f38666f5a348c5f40c66dd6e5896618b7f1b09bc Mon Sep 17 00:00:00 2001 From: Marcos Casagrande Date: Mon, 24 Oct 2022 13:26:41 +0200 Subject: fix(ext/fetch): fix `size_hint` on response body resource (#16254) --- ext/fetch/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/fetch') diff --git a/ext/fetch/lib.rs b/ext/fetch/lib.rs index 5a95fbd30..f79fc33f4 100644 --- a/ext/fetch/lib.rs +++ b/ext/fetch/lib.rs @@ -534,7 +534,7 @@ impl Resource for FetchResponseBodyResource { } fn size_hint(&self) -> (u64, Option) { - (0, self.size) + (self.size.unwrap_or(0), self.size) } fn close(self: Rc) { -- cgit v1.2.3