1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Read callback should return 0 when no more data left

This commit is contained in:
Yang Tse 2007-10-23 15:10:48 +00:00
parent e550df675a
commit 8e7da9464a

View File

@ -31,7 +31,7 @@ static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp)
return 1; /* we return 1 byte at a time! */ return 1; /* we return 1 byte at a time! */
} }
return -1; /* no more data left to deliver */ return 0; /* no more data left to deliver */
} }
int test(char *URL) int test(char *URL)