Add HTTP Basic Auth (RFC 7617) header to KOsync to supporto CWA embedded sync server

This commit is contained in:
drbourbon 2026-01-28 14:36:51 +01:00
parent b6f9c74a38
commit f0ee1f179f

View File

@ -20,7 +20,8 @@ void addAuthHeaders(HTTPClient& http) {
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 Basic Auth (RFC 7617) header. This is needed to support koreader sync server embedded in Calibre Web Automated
// (https://github.com/crocodilestick/Calibre-Web-Automated/blob/main/cps/progress_syncing/protocols/kosync.py)
http.setAuthorization(KOREADER_STORE.getUsername().c_str(), KOREADER_STORE.getPassword().c_str());
}