mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 19:41:35 +00:00
omit unnecessary test, because NGX_ERROR == -1,
but r->headers_out.last_modified_time != -1 at this point
This commit is contained in:
parent
6c2f052744
commit
d7a7bedeb6
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue