aboutsummaryrefslogtreecommitdiff
path: root/src/prefsparser.cc
diff options
context:
space:
mode:
authorMark Walker <mark.damon.walker@tutanota.com>2024-04-28 10:33:49 +0800
committerrodarima <rodarima@gmail.com>2024-04-29 19:39:21 +0200
commit20a10f03d4b14d68a77db88feea95cfcdbef8d34 (patch)
tree8cc0d32153dfedc7805b743245e01ebf0078c4dd /src/prefsparser.cc
parentb18496029c93a601646245adeb19372d705e0aab (diff)
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
Diffstat (limited to 'src/prefsparser.cc')
-rw-r--r--src/prefsparser.cc1
1 files changed, 1 insertions, 0 deletions
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 },