From: Daniel Stenberg Date: Fri, 29 Nov 2002 08:12:20 +0000 (+0000) Subject: let the Curl_FormReader() return 0 when it reaches end of data to that the X-Git-Tag: curl-7_10_3~130 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e90d5280260808a164c1c59677fa884fcba60c9c;p=curl let the Curl_FormReader() return 0 when it reaches end of data to that the chunked transfer work --- 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 {