Skip to content

Commit

Permalink
fix(ext/fetch): fix size_hint on response body resource (denoland#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosc90 authored Oct 24, 2022
1 parent b7d86b4 commit f38666f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/fetch/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>) {
Expand Down

0 comments on commit f38666f

Please sign in to comment.