From 3def0943a4718dbce15bf66a1c7a8ed65b219e58 Mon Sep 17 00:00:00 2001 From: art0007i Date: Wed, 30 Aug 2023 12:44:22 +0200 Subject: [PATCH] send content-type header with body --- src/reqwest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reqwest.rs b/src/reqwest.rs index 29f3f51..c9ecfd5 100644 --- a/src/reqwest.rs +++ b/src/reqwest.rs @@ -106,7 +106,7 @@ pub trait ApiClient { queryable.url(api_state), ); if let Some(body) = queryable.body(api_state) { - request = request.body(body?); + request = request.body(body?).header("Content-Type", "application/json"); } Ok(request)