Fixes issue with Calibre web expecting SSL (#347)

http urls now work with Calibre web

---------

Co-authored-by: Dave Allie <dave@daveallie.com>
This commit is contained in:
Justin Mitchell
2026-01-14 11:54:14 +00:00
committed by GitHub
co-authored by Dave Allie
parent cb1076dec0
commit 79ec059bda
3 changed files with 28 additions and 4 deletions
+2
View File
@@ -2,6 +2,8 @@
namespace UrlUtils {
bool isHttpsUrl(const std::string& url) { return url.rfind("https://", 0) == 0; }
std::string ensureProtocol(const std::string& url) {
if (url.find("://") == std::string::npos) {
return "http://" + url;