change!: rename PreferSecureProtocol to HTTPS
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
235fab19e6
commit
0fa430cb51
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ def _validate_config() -> bool:
|
||||||
"Name": "Danbooru",
|
"Name": "Danbooru",
|
||||||
"Host": "danbooru.donmai.us",
|
"Host": "danbooru.donmai.us",
|
||||||
"HostName": "",
|
"HostName": "",
|
||||||
"PreferSecureProtocol": True,
|
"HTTPS": True,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ class _App:
|
||||||
if not self.hostname:
|
if not self.hostname:
|
||||||
self.hostname = self.host
|
self.hostname = self.host
|
||||||
self.protocol = "http"
|
self.protocol = "http"
|
||||||
if eval(_c.get("App", "PreferSecureProtocol")):
|
if eval(_c.get("App", "HTTPS")):
|
||||||
self.protocol = "https"
|
self.protocol = "https"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue