aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-11-29 08:12:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-11-29 08:12:20 +0000
commite90d5280260808a164c1c59677fa884fcba60c9c (patch)
treec1526f39f10149047ba1f1ddd671b98e7c87ce5a /lib
parentd64dd779931482c614c7cb71d8f9ad81f2417479 (diff)
let the Curl_FormReader() return 0 when it reaches end of data to that the
chunked transfer work
Diffstat (limited to 'lib')
-rw-r--r--lib/formdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index 1b15e8102..0015a6203 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -1319,7 +1319,7 @@ int Curl_FormReader(char *buffer,
wantedsize = size * nitems;
if(!form->data)
- return -1; /* nothing, error, empty */
+ return 0; /* nothing, error, empty */
do {