aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_proxy_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-06-15 14:25:08 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-06-15 14:25:08 +0000
commit0775182312de6b279bb99cc23d644382db04870a (patch)
tree4dc6719eeac72b44312b6f4bc5fe985e95d43344 /src/http/modules/ngx_http_proxy_module.c
parentdfd4e0a3034080b5a9ba77b0683ed37b0b35a3fe (diff)
downloadnginx-0775182312de6b279bb99cc23d644382db04870a.tar.gz
nginx-0775182312de6b279bb99cc23d644382db04870a.zip
fix building --without-http-cache, broken in r2930
Diffstat (limited to 'src/http/modules/ngx_http_proxy_module.c')
-rw-r--r--src/http/modules/ngx_http_proxy_module.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c
index f0aadb402..f2d939ed7 100644
--- a/src/http/modules/ngx_http_proxy_module.c
+++ b/src/http/modules/ngx_http_proxy_module.c
@@ -2343,7 +2343,10 @@ ngx_http_proxy_merge_headers(ngx_conf_t *cf, ngx_http_proxy_loc_conf_t *conf,
}
if (conf->headers_set_hash.buckets
- && ((conf->upstream.cache == NULL) == (prev->upstream.cache == NULL)))
+#if (NGX_HTTP_CACHE)
+ && ((conf->upstream.cache == NULL) == (prev->upstream.cache == NULL))
+#endif
+ )
{
return NGX_OK;
}