aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_static_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-01-11 15:26:57 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-01-11 15:26:57 +0000
commitdf3254aa49c80b350ff4fa2eb50baf3cafbed71c (patch)
tree15a72baf5205f698354f529e4ba2d5846b558c4a /src/http/modules/ngx_http_static_module.c
parent04ebcd942969bc479b4cc680eab6bf01f488f12f (diff)
downloadnginx-release-0.3.20.tar.gz
nginx-release-0.3.20.zip
nginx-0.3.20-RELEASE importrelease-0.3.20
*) Bugfix: in SSI handling. *) Bugfix: the ngx_http_memcached_module did not support the keys in the "/usr?args" form.
Diffstat (limited to 'src/http/modules/ngx_http_static_module.c')
-rw-r--r--src/http/modules/ngx_http_static_module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_static_module.c b/src/http/modules/ngx_http_static_module.c
index ed360faec..42cc676af 100644
--- a/src/http/modules/ngx_http_static_module.c
+++ b/src/http/modules/ngx_http_static_module.c
@@ -244,7 +244,7 @@ ngx_http_static_handler(ngx_http_request_t *r)
return NGX_HTTP_INTERNAL_SERVER_ERROR;
}
- if (r->main != r && ngx_file_size(&fi) == 0) {
+ if (r != r->main && ngx_file_size(&fi) == 0) {
return ngx_http_send_header(r);
}
@@ -272,7 +272,7 @@ ngx_http_static_handler(ngx_http_request_t *r)
b->file_last = ngx_file_size(&fi);
b->in_file = b->file_last ? 1: 0;
- b->last_buf = (r->main == r) ? 1: 0;
+ b->last_buf = (r == r->main) ? 1: 0;
b->last_in_chain = 1;
b->file->fd = fd;