submissions-api: hardcode header to application/json
This commit is contained in:
parent
e7234a614d
commit
6064a1e48f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user