mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
use the proper timecond defines, not the obsolete ones!
This commit is contained in:
parent
945c6f7279
commit
e262a7265a
@ -888,7 +888,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
||||
HTTP/1.1 client */
|
||||
if((k->timeofdoc > 0) && (data->set.timevalue > 0)) {
|
||||
switch(data->set.timecondition) {
|
||||
case TIMECOND_IFMODSINCE:
|
||||
case CURL_TIMECOND_IFMODSINCE:
|
||||
default:
|
||||
if(k->timeofdoc < data->set.timevalue) {
|
||||
infof(data,
|
||||
@ -897,7 +897,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
||||
return CURLE_OK;
|
||||
}
|
||||
break;
|
||||
case TIMECOND_IFUNMODSINCE:
|
||||
case CURL_TIMECOND_IFUNMODSINCE:
|
||||
if(k->timeofdoc > data->set.timevalue) {
|
||||
infof(data,
|
||||
"The requested document is not old enough\n");
|
||||
|
Loading…
Reference in New Issue
Block a user