summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-07 20:43:18 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-08 08:24:37 +0200
commit98c3f14871d1de77d1f9704e2f309aef9be33553 (patch)
tree8acbc5d678b57573078057c1af5c66e053c8ac9e /lib/url.c
parent026840e35c7359c23741afe633bd3ab4b121c4ed (diff)
downloadcurl-98c3f14871d1de77d1f9704e2f309aef9be33553.tar.gz
alt-svc: send Alt-Used: in redirected requests
RFC 7838 section 5: When using an alternative service, clients SHOULD include an Alt-Used header field in all requests. Removed CURLALTSVC_ALTUSED again (feature is still EXPERIMENTAL thus this is deemed ok). You can disable sending this header just like you disable any other HTTP header in libcurl. Closes #4199
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 99bea3f01..d31f83065 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3187,6 +3187,7 @@ static CURLcode parse_connect_to_slist(struct Curl_easy *data,
conn->bits.conn_to_host = TRUE;
conn->conn_to_port = nport;
conn->bits.conn_to_port = TRUE;
+ conn->bits.altused = TRUE;
infof(data, "Alt-svc connecting from [%s]%s:%d to [%s]%s:%d\n",
Curl_alpnid2str(salpnid), host, conn->remote_port,
Curl_alpnid2str(nalpnid), hostd, nport);