mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 13:42:55 +08:00
set r->root_tested for non-error_page response only
This commit is contained in:
parent
1b8267cea2
commit
f1bde24720
@ -160,7 +160,7 @@ ngx_http_flv_handler(ngx_http_request_t *r)
|
|||||||
return NGX_DECLINED;
|
return NGX_DECLINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
r->root_tested = 1;
|
r->root_tested = !r->error_page;
|
||||||
|
|
||||||
start = 0;
|
start = 0;
|
||||||
len = of.size;
|
len = of.size;
|
||||||
|
@ -176,7 +176,7 @@ ngx_http_gzip_static_handler(ngx_http_request_t *r)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
r->root_tested = 1;
|
r->root_tested = !r->error_page;
|
||||||
|
|
||||||
rc = ngx_http_discard_request_body(r);
|
rc = ngx_http_discard_request_body(r);
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ ngx_http_static_handler(ngx_http_request_t *r)
|
|||||||
return rc;
|
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);
|
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, 0, "http static fd: %d", of.fd);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user