file: add support for CURLOPT_TIMECONDITION
This commit is contained in:
committed by
Kamil Dudka
parent
99dcb11ed8
commit
b89122a2bf
@@ -463,6 +463,13 @@ static CURLcode file_do(struct connectdata *conn, bool *done)
|
||||
fstated = TRUE;
|
||||
}
|
||||
|
||||
if(fstated && !data->state.range && data->set.timecondition) {
|
||||
if(!Curl_meets_timecondition(data, data->info.filetime)) {
|
||||
*done = TRUE;
|
||||
return CURLE_OK;
|
||||
}
|
||||
}
|
||||
|
||||
/* If we have selected NOBODY and HEADER, it means that we only want file
|
||||
information. Which for FILE can't be much more than the file size and
|
||||
date. */
|
||||
|
||||
Reference in New Issue
Block a user