Repository: candlecorp/wick (language: rust)

Issue:
large JSON breaks http routers
**Describe the bug**
Large JSON requests get interspersed with null bytes which breaks downstream handlers.

**Environment:**
 - OS: Mac
 - Architecture: M1
 - Build Version: 0.16.0



Discussion / hints:

Fix patch:
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<Vec<bytes::Bytes>, _> = 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::<Value>)


Test patch: