mirror of
https://github.com/curl/curl.git
synced 2026-07-28 00:53:06 +03:00
hsts: enable by default
No longer considered experimental. Closes #6700
This commit is contained in:
parent
eff614fb02
commit
d71ff2b9db
15 changed files with 69 additions and 44 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue