diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-10-18 14:36:34 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-10-18 14:36:34 +0200 |
commit | 7de8e3e41a06ab8031a37105eaaae749bcffc146 (patch) | |
tree | 2f30f45024f89422bb7549df274e3e6db7192708 | |
parent | f06280eb53fd83b51f230b88083b4453f496931d (diff) | |
download | curl-7de8e3e41a06ab8031a37105eaaae749bcffc146.tar.gz |
url: set "k->size" -1 at start of requestbagder/http-size-reset
As the size of the transfer is unknown at thay point.
Fixes #7871
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |