]> git.ipfire.org Git - thirdparty/curl.git/commit
urldata: don't touch data->set.httpversion at run-time
authorDaniel Stenberg <daniel@haxx.se>
Thu, 11 Feb 2021 15:30:32 +0000 (16:30 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 12 Feb 2021 07:13:37 +0000 (08:13 +0100)
commit88dd1a8a115b1f5ece26fd8941b4464973b7d913
tree2dff281d92e8795a15520ef3568fb55ec7a32fbc
parentbd6b54ba1f55b579b7fc90de271bb1992a8fb975
urldata: don't touch data->set.httpversion at run-time

Rename it to 'httpwant' and make a cloned field in the state struct as
well for run-time updates.

Also: refuse non-supported HTTP versions. Verified with test 129.

Closes #6585
17 files changed:
lib/c-hyper.c
lib/http.c
lib/multi.c
lib/setopt.c
lib/transfer.c
lib/url.c
lib/urldata.h
lib/vtls/bearssl.c
lib/vtls/gtls.c
lib/vtls/mbedtls.c
lib/vtls/nss.c
lib/vtls/openssl.c
lib/vtls/schannel.c
lib/vtls/sectransp.c
lib/vtls/wolfssl.c
tests/data/Makefile.inc
tests/data/test129 [new file with mode: 0644]