From 4bb02eaf03b000bacd082c380dc82e88ef75dc79 Mon Sep 17 00:00:00 2001 From: analogue Date: Tue, 29 Mar 2022 20:22:30 +0000 Subject: [PATCH] Use proper https_enabled flag --- inc/commons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/commons.js b/inc/commons.js index 9745249..09846f6 100644 --- a/inc/commons.js +++ b/inc/commons.js @@ -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) { }