mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
Read callback should return 0 when no more data left
This commit is contained in:
parent
e550df675a
commit
8e7da9464a
@ -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; /* no more data left to deliver */
|
||||
return 0; /* no more data left to deliver */
|
||||
}
|
||||
|
||||
int test(char *URL)
|
||||
|
Loading…
Reference in New Issue
Block a user