aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_static_handler.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-03-14 20:46:25 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-03-14 20:46:25 +0000
commit3646a1669df23e2dcfb7cc8c940abeb822d8f010 (patch)
tree3fa72a0986c1bbb70eb393a0073c117bb82dcd54 /src/http/modules/ngx_http_static_handler.c
parent67f88e9cc678d31b5995518922d3fcb63a129465 (diff)
downloadnginx-3646a1669df23e2dcfb7cc8c940abeb822d8f010.tar.gz
nginx-3646a1669df23e2dcfb7cc8c940abeb822d8f010.zip
nginx-0.0.2-2004-03-14-23:46:25 import
Diffstat (limited to 'src/http/modules/ngx_http_static_handler.c')
-rw-r--r--src/http/modules/ngx_http_static_handler.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_static_handler.c b/src/http/modules/ngx_http_static_handler.c
index 6925a031b..7876d2a24 100644
--- a/src/http/modules/ngx_http_static_handler.c
+++ b/src/http/modules/ngx_http_static_handler.c
@@ -61,7 +61,6 @@ ngx_module_t ngx_http_static_module = {
static ngx_int_t ngx_http_static_handler(ngx_http_request_t *r)
{
char *last;
- uint32_t file_crc, redirect_crc;
ngx_fd_t fd;
ngx_int_t rc;
ngx_uint_t level;
@@ -71,11 +70,14 @@ static ngx_int_t ngx_http_static_handler(ngx_http_request_t *r)
ngx_hunk_t *h;
ngx_chain_t out;
ngx_file_info_t fi;
- ngx_http_cache_t *file, *redirect;
ngx_http_cleanup_t *file_cleanup, *redirect_cleanup;
ngx_http_log_ctx_t *ctx;
ngx_http_core_loc_conf_t *clcf;
ngx_http_static_loc_conf_t *slcf;
+#if (NGX_HTTP_CACHE)
+ uint32_t file_crc, redirect_crc;
+ ngx_http_cache_t *file, *redirect;
+#endif
if (r->uri.data[r->uri.len - 1] == '/') {
return NGX_DECLINED;