1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 15:49:44 -05:00

fix(ext/fetch): fix size_hint on response body resource (#16254)

This commit is contained in:
Marcos Casagrande 2022-10-24 13:26:41 +02:00 committed by GitHub
parent b7d86b4bed
commit f38666f5a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -534,7 +534,7 @@ impl Resource for FetchResponseBodyResource {
}
fn size_hint(&self) -> (u64, Option<u64>) {
(0, self.size)
(self.size.unwrap_or(0), self.size)
}
fn close(self: Rc<Self>) {