diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-04-15 14:11:44 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-04-15 14:11:44 -0700 |
| commit | eba498a77463e9d24c19c8d9473fd2152d5840c4 (patch) | |
| tree | d0b0f253635fc54d69cc8b91946eee05a849b8df /http.c | |
| parent | 372aabe91285b8c50eaf513488fa2c3c529c1eec (diff) | |
| parent | 92a209bf245c6497f3742b9df7a1463ddf067ea6 (diff) | |
| download | git-eba498a77463e9d24c19c8d9473fd2152d5840c4.tar.xz | |
Merge branch 'jk/libcurl-8.7-regression-workaround'
Fix was added to work around a regression in libcURL 8.7.0 (which has
already been fixed in their tip of the tree).
* jk/libcurl-8.7-regression-workaround:
remote-curl: add Transfer-Encoding header only for older curl
INSTALL: bump libcurl version to 7.21.3
http: reset POSTFIELDSIZE when clearing curl handle
Diffstat (limited to 'http.c')
| -rw-r--r-- | http.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1452,6 +1452,7 @@ struct active_request_slot *get_active_slot(void) curl_easy_setopt(slot->curl, CURLOPT_READFUNCTION, NULL); curl_easy_setopt(slot->curl, CURLOPT_WRITEFUNCTION, NULL); curl_easy_setopt(slot->curl, CURLOPT_POSTFIELDS, NULL); + curl_easy_setopt(slot->curl, CURLOPT_POSTFIELDSIZE, -1L); curl_easy_setopt(slot->curl, CURLOPT_UPLOAD, 0); curl_easy_setopt(slot->curl, CURLOPT_HTTPGET, 1); curl_easy_setopt(slot->curl, CURLOPT_FAILONERROR, 1); |
