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

CURL_TIMECOND_IFMODSINCE actually requires that the remote document has been

modded since the given time, so we should compare <= and not just <.
parent b29017f1
No related branches found
No related tags found
No related merge requests found
......@@ -1798,7 +1798,7 @@ static CURLcode ftp_state_mdtm_resp(struct connectdata *conn,
switch(data->set.timecondition) {
case CURL_TIMECOND_IFMODSINCE:
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");
ftp->no_transfer = TRUE; /* mark this to not transfer data */
state(conn, FTP_STOP);
......
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