Allows koreader sync to run over http

This commit is contained in:
Justin Mitchell
2026-01-14 11:57:07 -05:00
parent 614b000c31
commit b32bf51f0a
4 changed files with 53 additions and 24 deletions

View File

@@ -153,9 +153,9 @@ std::string KOReaderCredentialStore::getBaseUrl() const {
return DEFAULT_SERVER_URL;
}
// Normalize URL: add https:// if no protocol specified
// Normalize URL: add http:// if no protocol specified (local servers typically don't have SSL)
if (serverUrl.find("://") == std::string::npos) {
return "https://" + serverUrl;
return "http://" + serverUrl;
}
return serverUrl;