Commit d07fd4425f654825099729e1caa2b3b25341a91d

Jacques Germishuys 2014-07-12T14:37:39

Define WINHTTP_IGNORE_REQUEST_TOTAL_LENGTH if not defined

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c
index bd9509c..fd29579 100644
--- a/src/transports/winhttp.c
+++ b/src/transports/winhttp.c
@@ -36,6 +36,10 @@
 #define CACHED_POST_BODY_BUF_SIZE	4096
 #define UUID_LENGTH_CCH	32
 
+#ifndef WINHTTP_IGNORE_REQUEST_TOTAL_LENGTH
+#define WINHTTP_IGNORE_REQUEST_TOTAL_LENGTH 0
+#endif
+
 static const char *prefix_http = "http://";
 static const char *prefix_https = "https://";
 static const char *upload_pack_service = "upload-pack";