diff --git a/lib/ftp.c b/lib/ftp.c index c6e31e1b64..c07bafe177 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -2448,6 +2448,7 @@ static CURLcode ftp_state_get_resp(struct Curl_easy *data, if((instate != FTP_LIST) && !data->state.prefer_ascii && + !data->set.ignorecl && (ftp->downloadsize < 1)) { /* * It seems directory listings either don't show the size or very