aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-02-06 15:48:53 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-02-06 15:48:53 +0000
commitb544c5fa5c7474bcf792969934564e0446334134 (patch)
tree61066d61c883e6a7e1a67a2ded7223228e7968ca /lib
parentafa64ee31f09a9fd02ed108f2b1dee3e054f2c43 (diff)
ARGH the CRLF I removed recently was not only done after the initial
content-type header, it was used for each part and thus without this it failed MISERABLY. *smacks forhead*
Diffstat (limited to 'lib')
-rw-r--r--lib/formdata.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index addbdf9d1..b607e57bd 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -1065,6 +1065,9 @@ struct FormData *Curl_getFormData(struct HttpPost *post,
do {
+ if(size)
+ size += AddFormDataf(&form, "\r\n");
+
/* boundary */
size += AddFormDataf(&form, "--%s\r\n", boundary);