This commit is contained in:
2025-06-11 18:53:17 -07:00
parent dd8f4eb769
commit 384640a407

View File

@@ -411,6 +411,7 @@ impl Context{
async fn patch(&self,url:url::Url,body:impl Into<reqwest::Body>+Clone)->Result<reqwest::Response,PostError>{
let mut resp=self.client.patch(url.clone())
.header("Cookie",self.cookie.as_str())
.header("Content-Type","application/json")
.body(body.clone())
.send().await.map_err(PostError::Reqwest)?;
@@ -420,6 +421,7 @@ impl Context{
resp=self.client.patch(url)
.header("X-CSRF-Token",csrf_token)
.header("Cookie",self.cookie.as_str())
.header("Content-Type","application/json")
.body(body)
.send().await.map_err(PostError::Reqwest)?;
}else{