diff options
| author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2024-04-10 19:25:02 +0200 |
|---|---|---|
| committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2024-04-16 23:58:53 +0200 |
| commit | c7db432de6cf7f53888405c24609793cd550da97 (patch) | |
| tree | f768c0cb8fe1afe6041f6adfa888e881581b7e9a /http.c | |
| parent | e1813a335c3b072b64388f3360e3033fdffb74b0 (diff) | |
| parent | 5d312ec8a4981264b4ed3d3b77c43a0336385be2 (diff) | |
Merge branch 'backport/jk/libcurl-8.7-regression-workaround' into maint-2.39
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
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Diffstat (limited to 'http.c')
| -rw-r--r-- | http.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1326,6 +1326,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); |
