Skip to content

Commit

Permalink
Merge pull request #11 from trento-project/add-content-type-to-post
Browse files Browse the repository at this point in the history
Add Content-Type header to the POST request
  • Loading branch information
dottorblaster authored Mar 1, 2022
2 parents 2b25dfb + 7fcdc5e commit 5eabe59
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 5eabe59

Please sign in to comment.