From 0fae17c83441fa4324b7a3c80d61453e8b832891 Mon Sep 17 00:00:00 2001 From: Jarrod Overson Date: Thu, 19 Oct 2023 16:03:23 -0400 Subject: [PATCH] fix: fixed concatenation of JSON bytes, fixes #458 --- crates/wick/wick-trigger-http/src/http/routers/raw.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/wick/wick-trigger-http/src/http/routers/raw.rs b/crates/wick/wick-trigger-http/src/http/routers/raw.rs index 89b62613..8e7c635f 100644 --- a/crates/wick/wick-trigger-http/src/http/routers/raw.rs +++ b/crates/wick/wick-trigger-http/src/http/routers/raw.rs @@ -114,7 +114,7 @@ impl RawHandler { let bytes: Result, _> = body.try_collect().await; match bytes { Ok(b) => { - let bytes = b.join(&0); + let bytes = b.concat(); trace!(?bytes, "http:codec:json:bytes"); let packet = if bytes.is_empty() { Packet::encode("body", None::)