CURL_TIMECOND_IFMODSINCE actually requires that the remote document has been

modded since the given time, so we should compare <= and not just <.
This commit is contained in:
Daniel Stenberg 2005-10-05 06:09:20 +00:00
Родитель b29017f15b
Коммит 3beb2f6b5d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1798,7 +1798,7 @@ static CURLcode ftp_state_mdtm_resp(struct connectdata *conn,
switch(data->set.timecondition) { switch(data->set.timecondition) {
case CURL_TIMECOND_IFMODSINCE: case CURL_TIMECOND_IFMODSINCE:
default: default:
if(data->info.filetime < data->set.timevalue) { if(data->info.filetime <= data->set.timevalue) {
infof(data, "The requested document is not new enough\n"); infof(data, "The requested document is not new enough\n");
ftp->no_transfer = TRUE; /* mark this to not transfer data */ ftp->no_transfer = TRUE; /* mark this to not transfer data */
state(conn, FTP_STOP); state(conn, FTP_STOP);