mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:43:32 +03:00
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)
This commit is contained in:
parent
88e21894c7
commit
e9aa07f660
3 changed files with 4 additions and 4 deletions
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue