Skip to content

Commit c805e3b

Browse files
committed
fixup! Provide the fetched data to fetch() consumers.
1 parent 7ac1910 commit c805e3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/script/body.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ pub fn consume_body<T: BodyOperations + Reflectable>(object: &T, body_type: Body
4848
if object.get_body_used() || object.is_locked() {
4949
promise.reject_error(promise.global().r().get_cx(), Error::Type(
5050
"The response's stream is disturbed or locked".to_string()));
51+
return promise;
5152
}
5253

5354
object.set_body_promise(&promise, body_type);

0 commit comments

Comments
 (0)