Skip to content
Snippets Groups Projects
Commit 62032ee2 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Getting an empty FTP file no longer makes us return error 19. An empty file

is fine to get.
parent 775645f2
No related branches found
No related tags found
No related merge requests found
......@@ -637,7 +637,7 @@ CURLcode Curl_ftp_done(struct connectdata *conn)
}
else if(!conn->bits.resume_done &&
!data->set.no_body &&
(0 == *ftp->bytecountp)) {
(!*ftp->bytecountp && (conn->size>0))) {
/* We consider this an error, but there's no true FTP error received
why we need to continue to "read out" the server response too.
We don't want to leave a "waiting" server reply if we'll get told
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment