diff --git a/lib/src/fnc/util/http/mod.rs b/lib/src/fnc/util/http/mod.rs index e586e7c7..fc6bad19 100644 --- a/lib/src/fnc/util/http/mod.rs +++ b/lib/src/fnc/util/http/mod.rs @@ -14,7 +14,7 @@ pub(crate) fn uri_is_valid(uri: &str) -> bool { fn encode_body(req: RequestBuilder, body: Value) -> RequestBuilder { match body { Value::Bytes(bytes) => req.header(CONTENT_TYPE, "application/octet-stream").body(bytes.0), - _ if body.is_some() => req.json(&body), + _ if body.is_some() => req.json(&body.into_json()), _ => req, } }