From 7ce6e316a7c9f80a1d3b51d48a28cfdc6d9fb889 Mon Sep 17 00:00:00 2001 From: drbourbon Date: Tue, 27 Jan 2026 13:54:27 +0100 Subject: [PATCH] aggiunto basic auth per accedere con mio CWA --- lib/KOReaderSync/KOReaderSyncClient.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/KOReaderSync/KOReaderSyncClient.cpp b/lib/KOReaderSync/KOReaderSyncClient.cpp index c5053c64..c99e43e8 100644 --- a/lib/KOReaderSync/KOReaderSyncClient.cpp +++ b/lib/KOReaderSync/KOReaderSyncClient.cpp @@ -19,6 +19,9 @@ void addAuthHeaders(HTTPClient& http) { http.addHeader("Accept", "application/vnd.koreader.v1+json"); http.addHeader("x-auth-user", KOREADER_STORE.getUsername().c_str()); http.addHeader("x-auth-key", KOREADER_STORE.getMd5Password().c_str()); + + // [FIXME] FB hack per mio CWA che non autentica con x-auth-user + http.setAuthorization(KOREADER_STORE.getUsername().c_str(), KOREADER_STORE.getPassword().c_str()); } bool isHttpsUrl(const std::string& url) { return url.rfind("https://", 0) == 0; }