mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
alt-svc: enable by default
Remove CURLALTSVC_IMMEDIATELY, which was never implemented/supported. alt-svc support in curl is no longer considered experimental Closes #5868
This commit is contained in:
parent
e2bcdf557b
commit
96450a1a33
27 changed files with 58 additions and 71 deletions
|
|
@ -2518,7 +2518,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
|
|||
if(result)
|
||||
return result;
|
||||
|
||||
#ifdef USE_ALTSVC
|
||||
#ifndef CURL_DISABLE_ALTSVC
|
||||
if(conn->bits.altused && !Curl_checkheaders(conn, "Alt-Used")) {
|
||||
altused = aprintf("Alt-Used: %s:%d\r\n",
|
||||
conn->conn_to_host.name, conn->conn_to_port);
|
||||
|
|
@ -3992,7 +3992,7 @@ CURLcode Curl_http_readwrite_headers(struct Curl_easy *data,
|
|||
}
|
||||
}
|
||||
}
|
||||
#ifdef USE_ALTSVC
|
||||
#ifndef CURL_DISABLE_ALTSVC
|
||||
/* If enabled, the header is incoming and this is over HTTPS */
|
||||
else if(data->asi && checkprefix("Alt-Svc:", headp) &&
|
||||
((conn->handler->flags & PROTOPT_SSL) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue