Skip to content

Commit

Permalink
fix: ensure stream is done
Browse files Browse the repository at this point in the history
  • Loading branch information
fawadasaurus committed Oct 13, 2023
1 parent 496c902 commit b80b206
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/wick/wick-trigger-http/src/http/component_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ pub(super) async fn respond(
let (tx, rx) = unbounded_channel();
let _output_handle = tokio::spawn(async move {
while let Some(p) = body_stream.recv().await {
if !p.has_data() {
continue;
}
match codec {
Codec::Json => {
let chunk = p
Expand Down

0 comments on commit b80b206

Please sign in to comment.