diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-06-01 22:58:46 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-06-02 16:30:36 +0200 |
commit | 9c845be2797e2047547ec247cb037471aeb48bb0 (patch) | |
tree | 425caca2641780b7c29e339aa38ec0e17fc7c552 /lib/urldata.h | |
parent | cba70628aefbfee68b329f199eace7ae950e2286 (diff) | |
download | curl-9c845be2797e2047547ec247cb037471aeb48bb0.tar.gz |
urldata: let the HTTP method be in the set.* struct
When the method is updated inside libcurl we must still not change the
method as set by the user as then repeated transfers with that same
handle might not execute the same operation anymore!
This fixes the libcurl part of #5462
Test 1633 added to verify.
Closes #5499
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index db6af9d10..d3cc5356e 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -1390,6 +1390,7 @@ struct UrlState { int stream_weight; CURLU *uh; /* URL handle for the current parsed URL */ struct urlpieces up; + Curl_HttpReq httpreq; /* what kind of HTTP request (if any) is this */ #ifndef CURL_DISABLE_HTTP size_t trailers_bytes_sent; struct dynbuf trailers_buf; /* a buffer containing the compiled trailing @@ -1678,7 +1679,7 @@ struct UserDefined { the hostname and port to connect to */ curl_TimeCond timecondition; /* kind of time/date comparison */ time_t timevalue; /* what time to compare with */ - Curl_HttpReq httpreq; /* what kind of HTTP request (if any) is this */ + Curl_HttpReq method; /* what kind of HTTP request (if any) is this */ long httpversion; /* when non-zero, a specific HTTP version requested to be used in the library's request(s) */ struct ssl_config_data ssl; /* user defined SSL stuff */ |