diff options
author | Mark Walker <mark.damon.walker@tutanota.com> | 2024-04-28 10:33:49 +0800 |
---|---|---|
committer | rodarima <rodarima@gmail.com> | 2024-04-29 19:39:21 +0200 |
commit | 20a10f03d4b14d68a77db88feea95cfcdbef8d34 (patch) | |
tree | 8cc0d32153dfedc7805b743245e01ebf0078c4dd /src/prefs.c | |
parent | b18496029c93a601646245adeb19372d705e0aab (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/prefs.c')
-rw-r--r-- | src/prefs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/prefs.c b/src/prefs.c index 72a7568e..8d25ef18 100644 --- a/src/prefs.c +++ b/src/prefs.c @@ -68,6 +68,7 @@ void a_Prefs_init(void) prefs.http_proxyuser = NULL; prefs.http_referer = dStrdup(PREFS_HTTP_REFERER); prefs.http_strict_transport_security = TRUE; + prefs.http_force_https = FALSE; prefs.http_user_agent = dStrdup(PREFS_HTTP_USER_AGENT); prefs.limit_text_width = FALSE; prefs.adjust_min_width = TRUE; |