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 /git-curl-compat.h | |
| parent | Merge branch 'ps/t0610-umask-fix' (diff) | |
| parent | remote-curl: add Transfer-Encoding header only for older curl (diff) | |
| download | git-eba498a77463e9d24c19c8d9473fd2152d5840c4.tar.gz git-eba498a77463e9d24c19c8d9473fd2152d5840c4.zip | |
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 'git-curl-compat.h')
| -rw-r--r-- | git-curl-compat.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/git-curl-compat.h b/git-curl-compat.h index fd96b3cdff..e1d0bdd273 100644 --- a/git-curl-compat.h +++ b/git-curl-compat.h @@ -127,6 +127,15 @@ #endif /** + * Versions before curl 7.66.0 (September 2019) required manually setting the + * transfer-encoding for a streaming POST; after that this is handled + * automatically. + */ +#if LIBCURL_VERSION_NUM < 0x074200 +#define GIT_CURL_NEED_TRANSFER_ENCODING_HEADER +#endif + +/** * CURLOPT_PROTOCOLS_STR and CURLOPT_REDIR_PROTOCOLS_STR were added in 7.85.0, * released in August 2022. */ |
