]> git.kaiwu.me - nginx.git/commitdiff
set r->root_tested for non-error_page response only
authorIgor Sysoev <igor@sysoev.ru>
Fri, 16 Jan 2009 13:53:08 +0000 (13:53 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 16 Jan 2009 13:53:08 +0000 (13:53 +0000)
src/http/modules/ngx_http_flv_module.c
src/http/modules/ngx_http_gzip_static_module.c
src/http/modules/ngx_http_static_module.c

index 2197b6c323a42edd7360f398e40be615143d21bc..948807cca18bc57e81c6f84cf1609d6cc717cc96 100644 (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;
index affb766ac74617a1d18e2657887d554747505e45..e7eb2345f3609c25fea82f3455a923c18249e0fa 100644 (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);
 
index 9ff1f817f875e2b207fdb9e355ab1f7186b31f69..5b9a0ebf44bf9190e9d6dfe3c8a1f3a38026fa04 100644 (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);