From 6064a1e48f218c6ef7464e8144e01485bc3f4a20 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 17 Dec 2024 19:43:12 -0800 Subject: [PATCH] submissions-api: hardcode header to application/json --- validation/api/src/context.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/validation/api/src/context.rs b/validation/api/src/context.rs index faeb2f3..880e704 100644 --- a/validation/api/src/context.rs +++ b/validation/api/src/context.rs @@ -22,6 +22,7 @@ impl Context{ } pub async fn post(&self,url:impl reqwest::IntoUrl,body:impl Into)->Result{ self.client.post(url) + .header("Content-Type","application/json") .body(body) .send().await }