Use proper https_enabled flag

This commit is contained in:
analogue 2022-03-29 20:22:30 +00:00
parent ee7508b24a
commit 4bb02eaf03
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ module.exports = function(request, fs) {
domain_replaced = true
}
if(domain_replaced && !user_preferences.https_enabled) {
if(domain_replaced && !config.https_enabled) {
url = url.replace('https:', 'http:')
}
} catch(e) { }