# HG changeset patch # User Igor Sysoev # Date 1194623023 0 # Node ID b67b75bb09b7cb730a675ae6959bdb064a8ec290 # Parent 9706372f8916789727cf72a6f565e796a71b376e omit unnecessary test, because NGX_ERROR == -1, but r->headers_out.last_modified_time != -1 at this point diff --git a/src/http/modules/ngx_http_not_modified_filter_module.c b/src/http/modules/ngx_http_not_modified_filter_module.c --- a/src/http/modules/ngx_http_not_modified_filter_module.c +++ b/src/http/modules/ngx_http_not_modified_filter_module.c @@ -70,7 +70,7 @@ ngx_int_t ngx_http_not_modified_header_f * I think that the equality of the dates is correcter */ - if (ims != NGX_ERROR && ims == r->headers_out.last_modified_time) { + if (ims == r->headers_out.last_modified_time) { r->headers_out.status = NGX_HTTP_NOT_MODIFIED; r->headers_out.content_type.len = 0; ngx_http_clear_content_length(r);