]> granicus.if.org Git - curl/commitdiff
let the Curl_FormReader() return 0 when it reaches end of data to that the
authorDaniel Stenberg <daniel@haxx.se>
Fri, 29 Nov 2002 08:12:20 +0000 (08:12 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 29 Nov 2002 08:12:20 +0000 (08:12 +0000)
chunked transfer work

lib/formdata.c

index 1b15e810255f57387f37bd08adf8a678d011c93c..0015a62033975220f756ac1eee6930a8d78261c9 100644 (file)
@@ -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 {