From e9aa07f660a3663281416fd5d391bcee78a117ec Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 28 Sep 2001 11:04:43 +0000 Subject: filetime should be -1 if the remote time was unknown as 0 is actually a valid time. we now store the filetime as a long to know for sure it can hold -1 (there exist some unsigned time_t cases) --- lib/transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/transfer.c') diff --git a/lib/transfer.c b/lib/transfer.c index c42970c58..dc628982b 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -627,7 +627,7 @@ Transfer(struct connectdata *c_conn) (data->set.timecondition || data->set.get_filetime) ) { time_t secs=time(NULL); timeofdoc = curl_getdate(p+strlen("Last-Modified:"), &secs); - if(data->set.get_filetime) + if(data->set.get_filetime>=0) data->info.filetime = timeofdoc; } else if ((httpcode >= 300 && httpcode < 400) && -- cgit v1.2.3