summaryrefslogtreecommitdiff
path: root/src/url.c
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2015-06-29 16:29:28 +0000
committercorvid <devnull@localhost>2015-06-29 16:29:28 +0000
commit476caeec459ecdee0b4e56f77ce46f76dfbfc817 (patch)
tree85e965abe35b8e3c4b96fe3dfe1c69635cf695eb /src/url.c
parent41f2b84001bb63d705c7981492a9637d4d48f5f7 (diff)
prefs.http_strict_transport_security
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/url.c b/src/url.c
index 124b9dcc..5ffe58fd 100644
--- a/src/url.c
+++ b/src/url.c
@@ -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";