diff options
author | corvid <devnull@localhost> | 2015-06-29 16:29:28 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2015-06-29 16:29:28 +0000 |
commit | 476caeec459ecdee0b4e56f77ce46f76dfbfc817 (patch) | |
tree | 85e965abe35b8e3c4b96fe3dfe1c69635cf695eb /src/url.c | |
parent | 41f2b84001bb63d705c7981492a9637d4d48f5f7 (diff) |
prefs.http_strict_transport_security
Diffstat (limited to 'src/url.c')
-rw-r--r-- | src/url.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -425,7 +425,8 @@ DilloUrl* a_Url_new(const char *url_str, const char *base_url) * A site's HTTP Strict Transport Security policy may direct us to transform * URLs like "http://en.wikipedia.org:80" to "https://en.wikipedia.org:443". */ - if (url->scheme && !dStrAsciiCasecmp(url->scheme, "http") && + if (prefs.http_strict_transport_security && + url->scheme && !dStrAsciiCasecmp(url->scheme, "http") && a_Hsts_require_https(a_Url_hostname(url))) { const char *const scheme = "https"; |