set r->root_tested for non-error_page response only

This commit is contained in:
Igor Sysoev 2009-01-16 13:53:08 +00:00
parent 1b8267cea2
commit f1bde24720
3 changed files with 3 additions and 3 deletions

View File

@ -160,7 +160,7 @@ ngx_http_flv_handler(ngx_http_request_t *r)
return NGX_DECLINED;
}
r->root_tested = 1;
r->root_tested = !r->error_page;
start = 0;
len = of.size;

View File

@ -176,7 +176,7 @@ ngx_http_gzip_static_handler(ngx_http_request_t *r)
#endif
r->root_tested = 1;
r->root_tested = !r->error_page;
rc = ngx_http_discard_request_body(r);

View File

@ -135,7 +135,7 @@ ngx_http_static_handler(ngx_http_request_t *r)
return rc;
}
r->root_tested = 1;
r->root_tested = !r->error_page;
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, 0, "http static fd: %d", of.fd);