mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:13:34 +03:00
Fix behaviour when passing NULL to CURLOPT_POSTFIELDS and CURLOPT_HTTPPOST.
This commit is contained in:
parent
8c16696f47
commit
59c063dfd3
11 changed files with 209 additions and 19 deletions
|
|
@ -555,6 +555,7 @@ void curl_easy_reset(CURL *curl)
|
|||
data->set.fread = (curl_read_callback)fread;
|
||||
|
||||
data->set.infilesize = -1; /* we don't know any size */
|
||||
data->set.postfieldsize = -1;
|
||||
|
||||
data->state.current_speed = -1; /* init to negative == impossible */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue