Skip to content

Commit

Permalink
send content-type header with body (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
art0007i authored Sep 18, 2023
1 parent f00b697 commit 415d3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reqwest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub trait ApiClient<State> {
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)
Expand Down

0 comments on commit 415d3ec

Please sign in to comment.