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:
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; /* 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user