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
1 changed files with 4 additions and 0 deletions

View File

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