aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-01-29 20:30:56 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-01-29 20:30:56 +0000
commita9c4963cc0e2d517685f2c99e5a0c99e8217c690 (patch)
treefa5dfaf07c1b72b7e6b784da5cd0333307f861ce
parenta4934387d54385530a4b2e0bf104b979a6100269 (diff)
removed three loust fprintf()s
removed the initial CRLF in the formpost, as they are part of the request and should be written by the code in http.c!
-rw-r--r--lib/formdata.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index bc137cfd0..addbdf9d1 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -235,7 +235,6 @@ int FormParse(char *input,
if(2 != sscanf(type, "%127[^/]/%127[^,\n]",
major, minor)) {
- fprintf(stderr, "Illegally formatted content-type field!\n");
free(contents);
return 2; /* illegal content-type syntax! */
}
@@ -371,7 +370,6 @@ int FormParse(char *input,
}
else {
- fprintf(stderr, "Illegally formatted input field!\n");
free(contents);
return 1;
}
@@ -841,7 +839,6 @@ FORMcode FormAdd(struct HttpPost **httppost,
break;
}
default:
- fprintf (stderr, "got unknown CURLFORM_OPTION: %d\n", option);
return_value = FORMADD_UNKNOWN_OPTION;
}
}
@@ -1069,7 +1066,7 @@ struct FormData *Curl_getFormData(struct HttpPost *post,
do {
/* boundary */
- size += AddFormDataf(&form, "\r\n--%s\r\n", boundary);
+ size += AddFormDataf(&form, "--%s\r\n", boundary);
size += AddFormData(&form,
"Content-Disposition: form-data; name=\"", 0);