projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d58d13
)
#505514, as correctly pointed out by Antonio (anton@concord.ru), trying to
author
Daniel Stenberg
<daniel@haxx.se>
Sat, 19 Jan 2002 11:08:05 +0000
(11:08 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Sat, 19 Jan 2002 11:08:05 +0000
(11:08 +0000)
post a non-existing file should include nothing, not an error text!
lib/formdata.c
patch
|
blob
|
history
diff --git
a/lib/formdata.c
b/lib/formdata.c
index
c767da9
..
bc137cf
100644
(file)
--- a/
lib/formdata.c
+++ b/
lib/formdata.c
@@
-1155,10
+1155,13
@@
struct FormData *Curl_getFormData(struct HttpPost *post,
}
if(fileread != stdin)
fclose(fileread);
- } else {
- size += AddFormData(&form, "[File wasn't found by client]", 0);
}
- } else {
+ else {
+ /* File wasn't found, add a nothing field! */
+ size += AddFormData(&form, "", 0);
+ }
+ }
+ else {
/* include the contents we got */
size += AddFormData(&form, post->contents, post->contentslength);
}