renamed the TIMECOND defines to be CURL_ prefixed
This commit is contained in:
Родитель
72d722b07b
Коммит
ef436bdbe8
|
@ -781,16 +781,16 @@ CURLcode Curl_http(struct connectdata *conn)
|
||||||
strcpy(buf, "no strftime() support");
|
strcpy(buf, "no strftime() support");
|
||||||
#endif
|
#endif
|
||||||
switch(data->set.timecondition) {
|
switch(data->set.timecondition) {
|
||||||
case TIMECOND_IFMODSINCE:
|
case CURL_TIMECOND_IFMODSINCE:
|
||||||
default:
|
default:
|
||||||
add_bufferf(req_buffer,
|
add_bufferf(req_buffer,
|
||||||
"If-Modified-Since: %s\r\n", buf);
|
"If-Modified-Since: %s\r\n", buf);
|
||||||
break;
|
break;
|
||||||
case TIMECOND_IFUNMODSINCE:
|
case CURL_TIMECOND_IFUNMODSINCE:
|
||||||
add_bufferf(req_buffer,
|
add_bufferf(req_buffer,
|
||||||
"If-Unmodified-Since: %s\r\n", buf);
|
"If-Unmodified-Since: %s\r\n", buf);
|
||||||
break;
|
break;
|
||||||
case TIMECOND_LASTMOD:
|
case CURL_TIMECOND_LASTMOD:
|
||||||
add_bufferf(req_buffer,
|
add_bufferf(req_buffer,
|
||||||
"Last-Modified: %s\r\n", buf);
|
"Last-Modified: %s\r\n", buf);
|
||||||
break;
|
break;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче