diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-02-11 16:30:32 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-02-12 08:13:37 +0100 |
commit | 88dd1a8a115b1f5ece26fd8941b4464973b7d913 (patch) | |
tree | 2dff281d92e8795a15520ef3568fb55ec7a32fbc /lib/c-hyper.c | |
parent | bd6b54ba1f55b579b7fc90de271bb1992a8fb975 (diff) | |
download | curl-88dd1a8a115b1f5ece26fd8941b4464973b7d913.tar.gz |
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
Diffstat (limited to 'lib/c-hyper.c')
-rw-r--r-- | lib/c-hyper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/c-hyper.c b/lib/c-hyper.c index 10bd7ef9b..8b4abd37f 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -741,7 +741,7 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done) goto error; } - if(data->set.httpversion == CURL_HTTP_VERSION_1_0) { + if(data->state.httpwant == CURL_HTTP_VERSION_1_0) { if(HYPERE_OK != hyper_request_set_version(req, HYPER_HTTP_VERSION_1_0)) { failf(data, "error setting HTTP version"); |