mirror of
https://github.com/curl/curl.git
synced 2026-08-26 06:53:32 +03:00
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
This commit is contained in:
parent
bd6b54ba1f
commit
88dd1a8a11
17 changed files with 109 additions and 34 deletions
|
|
@ -2173,7 +2173,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
|
|||
|
||||
if(!ret) {
|
||||
infof(data, "Downgrades to HTTP/1.1!\n");
|
||||
data->set.httpversion = CURL_HTTP_VERSION_1_1;
|
||||
data->state.httpwant = CURL_HTTP_VERSION_1_1;
|
||||
/* clear the error message bit too as we ignore the one we got */
|
||||
data->state.errorbuf = FALSE;
|
||||
if(!newurl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue