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
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
#include "git-compat-util.h"
|
||||
#include "git-curl-compat.h"
|
||||
#include "config.h"
|
||||
#include "environment.h"
|
||||
#include "gettext.h"
|
||||
@ -955,7 +956,9 @@ retry:
|
||||
/* The request body is large and the size cannot be predicted.
|
||||
* We must use chunked encoding to send it.
|
||||
*/
|
||||
#ifdef GIT_CURL_NEED_TRANSFER_ENCODING_HEADER
|
||||
headers = curl_slist_append(headers, "Transfer-Encoding: chunked");
|
||||
#endif
|
||||
rpc->initial_buffer = 1;
|
||||
curl_easy_setopt(slot->curl, CURLOPT_READFUNCTION, rpc_out);
|
||||
curl_easy_setopt(slot->curl, CURLOPT_INFILE, rpc);
|
||||
|
Reference in New Issue
Block a user