Skip to content

Commit

Permalink
fix: fixed concatenation of JSON bytes, fixes #458
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoverson committed Oct 19, 2023
1 parent 4ebbbc1 commit d0e3d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wick/wick-trigger-http/src/http/routers/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>)
Expand Down

0 comments on commit d0e3d93

Please sign in to comment.