summaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-03-08 08:30:32 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-04-19 08:22:16 +0200
commitd71ff2b9db566b3f4b2eb29441c2df86715d4339 (patch)
treeddd481d5d61a136b958da6efde6ef4817ed74107 /lib/http.c
parenteff614fb0242cb37d33f89e2e74a93cef5203aed (diff)
downloadcurl-d71ff2b9db566b3f4b2eb29441c2df86715d4339.tar.gz
hsts: enable by default
No longer considered experimental. Closes #6700
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index 02c81c419..3cb21760d 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -3618,7 +3618,7 @@ CURLcode Curl_http_header(struct Curl_easy *data, struct connectdata *conn,
}
}
-#ifdef USE_HSTS
+#ifndef CURL_DISABLE_HSTS
/* If enabled, the header is incoming and this is over HTTPS */
else if(data->hsts && checkprefix("Strict-Transport-Security:", headp) &&
(conn->handler->flags & PROTOPT_SSL)) {