change!: rename PreferSecureProtocol to HTTPS

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
mctaylors 2025-07-23 02:46:28 +03:00
parent 235fab19e6
commit 0fa430cb51
Signed by: mctaylors
GPG key ID: 9CF54A3ADF697D43

View file

@ -27,7 +27,7 @@ def _validate_config() -> bool:
"Name": "Danbooru",
"Host": "danbooru.donmai.us",
"HostName": "",
"PreferSecureProtocol": True,
"HTTPS": True,
},
}
@ -94,7 +94,7 @@ class _App:
if not self.hostname:
self.hostname = self.host
self.protocol = "http"
if eval(_c.get("App", "PreferSecureProtocol")):
if eval(_c.get("App", "HTTPS")):
self.protocol = "https"