Fix auth for 'getLatestImportTime'

This commit is contained in:
Dominic Grimm 2023-02-26 20:53:20 +01:00
parent 92cd3ccf97
commit 15af617614
No known key found for this signature in database
GPG key ID: 6F294212DEAAC530

View file

@ -702,6 +702,10 @@ impl Client {
.header(reqwest::header::USER_AGENT, &self.user_agent) .header(reqwest::header::USER_AGENT, &self.user_agent)
.header(reqwest::header::CONTENT_TYPE, "application/json") .header(reqwest::header::CONTENT_TYPE, "application/json")
.header(reqwest::header::ACCEPT, "application/json") .header(reqwest::header::ACCEPT, "application/json")
.header(
reqwest::header::COOKIE,
self.session.as_ref().context("Not logged in")?,
)
.json(&json!({ .json(&json!({
"id": "ID", "id": "ID",
"method": "getLatestImportTime", "method": "getLatestImportTime",