Mercurial > hg > nginx
diff src/http/ngx_http_core_module.c @ 2496:9081bbdccda1
if_modified_since off
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 10 Feb 2009 15:05:05 +0000 |
parents | d4fd929fb486 |
children | 7b0711452b34 |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c Mon Feb 09 12:03:55 2009 +0000 +++ b/src/http/ngx_http_core_module.c Tue Feb 10 15:05:05 2009 +0000 @@ -112,8 +112,9 @@ static ngx_conf_enum_t ngx_http_core_if_modified_since[] = { - { ngx_string("exact"), 0 }, - { ngx_string("before"), 1 }, + { ngx_string("off"), NGX_HTTP_IMS_OFF }, + { ngx_string("exact"), NGX_HTTP_IMS_EXACT }, + { ngx_string("before"), NGX_HTTP_IMS_BEFORE }, { ngx_null_string, 0 } }; @@ -3052,7 +3053,7 @@ ngx_conf_merge_uint_value(conf->satisfy, prev->satisfy, NGX_HTTP_SATISFY_ALL); ngx_conf_merge_uint_value(conf->if_modified_since, prev->if_modified_since, - 0); + NGX_HTTP_IMS_EXACT); ngx_conf_merge_value(conf->internal, prev->internal, 0); ngx_conf_merge_value(conf->client_body_in_file_only, prev->client_body_in_file_only, 0);