Skip to content

Commit

Permalink
Add Content-Type header to the POST request
Browse files Browse the repository at this point in the history
  • Loading branch information
dottorblaster committed Mar 1, 2022
1 parent 2b25dfb commit 7fcdc5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ async fn post_fixture(remote_endpoint: &str, file: &str, http_client: &reqwest::
let response = http_client
.post(remote_endpoint)
.body(file_content)
.header("Content-Type", "application/json")
.send()
.await;
match response {
Expand Down

0 comments on commit 7fcdc5e

Please sign in to comment.