From 7fcdc5e51cdc2c66e11a7813b159e804507c0ef3 Mon Sep 17 00:00:00 2001 From: Alessio Biancalana Date: Tue, 1 Mar 2022 11:26:52 +0100 Subject: [PATCH] Add Content-Type header to the POST request --- src/run.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/run.rs b/src/run.rs index c82700f..fb43063 100644 --- a/src/run.rs +++ b/src/run.rs @@ -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 {