diff options
Diffstat (limited to 'ext/http/http_next.rs')
-rw-r--r-- | ext/http/http_next.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/http/http_next.rs b/ext/http/http_next.rs index a6527397f..9bdb79f86 100644 --- a/ext/http/http_next.rs +++ b/ext/http/http_next.rs @@ -683,7 +683,7 @@ pub async fn op_http_set_response_body_resource( #[smi] stream_rid: ResourceId, auto_close: bool, status: u16, -) -> Result<(), AnyError> { +) -> Result<bool, AnyError> { let http = // SAFETY: op is called with external. unsafe { clone_external!(external, "op_http_set_response_body_resource") }; @@ -716,8 +716,7 @@ pub async fn op_http_set_response_body_resource( }, ); - http.response_body_finished().await; - Ok(()) + Ok(http.response_body_finished().await) } #[op2(fast)] |