submissions-api: hardcode header to application/json

This commit is contained in:
Quaternions 2024-12-17 19:43:12 -08:00
parent e7234a614d
commit 6064a1e48f

View File

@ -22,6 +22,7 @@ impl Context{
}
pub async fn post(&self,url:impl reqwest::IntoUrl,body:impl Into<reqwest::Body>)->Result<reqwest::Response,reqwest::Error>{
self.client.post(url)
.header("Content-Type","application/json")
.body(body)
.send().await
}