diff src/http/modules/ngx_http_autoindex_module.c @ 553:45033d85b30e release-0.2.5

nginx-0.2.5-RELEASE import *) Change: the duplicate value of the ngx_http_geo_module variable now causes the warning and changes old value. *) Feature: the ngx_http_ssi_module supports the "set" command. *) Feature: the ngx_http_ssi_module supports the "file" parameter in the "include" command. *) Feature: the ngx_http_ssi_module supports the variable value substitutions in expressions of the "if" command.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 04 Oct 2005 10:38:53 +0000
parents 818fbd4750b9
children ecd9c160f25b
line wrap: on
line diff
--- a/src/http/modules/ngx_http_autoindex_module.c
+++ b/src/http/modules/ngx_http_autoindex_module.c
@@ -514,7 +514,7 @@ ngx_http_autoindex_handler(ngx_http_requ
 
     b->last = ngx_cpymem(b->last, tail, sizeof(tail) - 1);
 
-    if (r->main == NULL) {
+    if (r->main == r) {
         b->last_buf = 1;
     }