]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-curl-compat.h
The ninteenth batch
[thirdparty/git.git] / git-curl-compat.h
index fd96b3cdffdb6cd11b429bcada40663e80dbebc9..e1d0bdd273501f98a186961f6eb00aa537953052 100644 (file)
 #define GIT_CURL_HAVE_CURLSSLSET_NO_BACKENDS
 #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.