aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_static_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-12-08 14:23:20 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-12-08 14:23:20 +0000
commit851cd73f1d1fffd265bff03f5db9470ec7f2842f (patch)
tree8b37df6fa5cc2ff72799a53532000b52480de34e /src/http/modules/ngx_http_static_module.c
parentba206e147c5fd9932b04ac24d01662d86ba7d6b9 (diff)
downloadnginx-851cd73f1d1fffd265bff03f5db9470ec7f2842f.tar.gz
nginx-851cd73f1d1fffd265bff03f5db9470ec7f2842f.zip
*) refactor subrequest handling, now they run as separate posted requests
*) now $upstream_addr, $upstream_status, $upstream_response_time can be used with log_subrequest
Diffstat (limited to 'src/http/modules/ngx_http_static_module.c')
-rw-r--r--src/http/modules/ngx_http_static_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_static_module.c b/src/http/modules/ngx_http_static_module.c
index 9ff1f817f..e90d83c57 100644
--- a/src/http/modules/ngx_http_static_module.c
+++ b/src/http/modules/ngx_http_static_module.c
@@ -217,7 +217,7 @@ ngx_http_static_handler(ngx_http_request_t *r)
return NGX_HTTP_INTERNAL_SERVER_ERROR;
}
- if (r != r->main && of.size == 0) {
+ if (of.size == 0) {
return ngx_http_send_header(r);
}