summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-10-05 06:09:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-10-05 06:09:20 +0000
commit3beb2f6b5d3307bdc044aa91a35748c44ec7c26a (patch)
tree0adc4402057a0b190109036ef2be71c46e11a9f2
parentb29017f15bd8fc4b7b4ce76c0817be05e99b9f56 (diff)
downloadgnurl-3beb2f6b5d3307bdc044aa91a35748c44ec7c26a.tar.gz
gnurl-3beb2f6b5d3307bdc044aa91a35748c44ec7c26a.tar.bz2
gnurl-3beb2f6b5d3307bdc044aa91a35748c44ec7c26a.zip
CURL_TIMECOND_IFMODSINCE actually requires that the remote document has been
modded since the given time, so we should compare <= and not just <.
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 64b903fca..c9fa72eda 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -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);