mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
url: set "k->size" -1 at start of request
The size of the transfer is unknown at that point. Fixes #7871 Closes #7872
This commit is contained in:
parent
f06280eb53
commit
bffe90cf2e
@ -4110,7 +4110,7 @@ CURLcode Curl_connect(struct Curl_easy *data,
|
||||
/* init the single-transfer specific data */
|
||||
Curl_free_request_state(data);
|
||||
memset(&data->req, 0, sizeof(struct SingleRequest));
|
||||
data->req.maxdownload = -1;
|
||||
data->req.size = data->req.maxdownload = -1;
|
||||
|
||||
/* call the stuff that needs to be called */
|
||||
result = create_conn(data, &conn, asyncp);
|
||||
|
Loading…
Reference in New Issue
Block a user