-
Notifications
You must be signed in to change notification settings - Fork 1
/
libs3.patch
41 lines (37 loc) · 1.46 KB
/
libs3.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
diff --git a/GNUmakefile b/GNUmakefile
index c81537c..ab1324e 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -136,7 +136,7 @@ ifndef CFLAGS
endif
endif
-CFLAGS += -Wall -Werror -Wshadow -Wextra \
+CFLAGS += -Wall -Werror -Wshadow -Wextra -Wno-format-truncation \
-Iinc \
$(CURL_CFLAGS) $(LIBXML2_CFLAGS) \
-DLIBS3_VER_MAJOR=\"$(LIBS3_VER_MAJOR)\" \
diff --git a/src/request.c b/src/request.c
index 63174d0..090da42 100644
--- a/src/request.c
+++ b/src/request.c
@@ -44,7 +44,7 @@
#endif
#define USER_AGENT_SIZE 256
-#define REQUEST_STACK_SIZE 32
+#define REQUEST_STACK_SIZE 256
#define SIGNATURE_SCOPE_SIZE 64
//#define SIGNATURE_DEBUG
@@ -1223,12 +1223,14 @@ static S3Status setup_curl(Request *request,
snprintf(header, sizeof(header), "Content-Length: %llu",
(unsigned long long) params->toS3CallbackTotalSize);
request->headers = curl_slist_append(request->headers, header);
+ request->headers = curl_slist_append(request->headers, "Expect:");
request->headers = curl_slist_append(request->headers,
"Transfer-Encoding:");
}
else if (params->httpRequestType == HttpRequestTypeCOPY) {
request->headers = curl_slist_append(request->headers,
"Transfer-Encoding:");
+ request->headers = curl_slist_append(request->headers, "Expect:");
}
append_standard_header(hostHeader);