From 20a10f03d4b14d68a77db88feea95cfcdbef8d34 Mon Sep 17 00:00:00 2001 From: Mark Walker Date: Sun, 28 Apr 2024 10:33:49 +0800 Subject: Add force https mode Implement an option to force all http urls to be upgraded to HTTPS, similar to HTTPS-Only Mode in Firefox. A http_force_https preference variable is provided as well as a menu bar item to toggle this mode. See: https://support.mozilla.org/en-US/kb/https-only-prefs --- src/prefsparser.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/prefsparser.cc') diff --git a/src/prefsparser.cc b/src/prefsparser.cc index dbb82cb8..40460e52 100644 --- a/src/prefsparser.cc +++ b/src/prefsparser.cc @@ -179,6 +179,7 @@ void PrefsParser::parse(FILE *fp) { "http_referer", &prefs.http_referer, PREFS_STRING, 0 }, { "http_strict_transport_security",&prefs.http_strict_transport_security, PREFS_BOOL, 0 }, + { "http_force_https", &prefs.http_force_https, PREFS_BOOL, 0 }, { "http_user_agent", &prefs.http_user_agent, PREFS_STRING, 0 }, { "limit_text_width", &prefs.limit_text_width, PREFS_BOOL, 0 }, { "adjust_min_width", &prefs.adjust_min_width, PREFS_BOOL, 0 }, -- cgit v1.2.3