diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-11-09 15:43:43 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-11-09 15:43:43 +0000 |
| commit | d7a7bedeb6a99feeaec3be5e9acdcf54ba017413 (patch) | |
| tree | b7f1f3c97888ca6426cc5ecbef6abfa68ab151e6 /src | |
| parent | 6c2f052744d189cbe94d9198463fc46e7ff8ea5b (diff) | |
| download | nginx-d7a7bedeb6a99feeaec3be5e9acdcf54ba017413.tar.gz nginx-d7a7bedeb6a99feeaec3be5e9acdcf54ba017413.tar.bz2 | |
omit unnecessary test, because NGX_ERROR == -1,
but r->headers_out.last_modified_time != -1 at this point
Diffstat (limited to 'src')
| -rw-r--r-- | src/http/modules/ngx_http_not_modified_filter_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_not_modified_filter_module.c b/src/http/modules/ngx_http_not_modified_filter_module.c index dc626362d..ce4b55cf5 100644 --- 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_filter(ngx_http_request_t *r) * 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); |
