diff --git a/src/lib.rs b/src/lib.rs index 53256ec..91505f4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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",