diff src/http/ngx_http_upstream.c @ 2961:31526449835f stable-0.7

merge r2950, r2951: cache related fixes: *) fix building --without-http-cache, broken in r2945 *) fix ./configure error message
author Igor Sysoev <igor@sysoev.ru>
date Mon, 22 Jun 2009 09:29:10 +0000
parents f892042956e3
children b0c1ce16b5bd
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -4086,7 +4086,10 @@ ngx_http_upstream_hide_headers_hash(ngx_
         conf->hide_headers_hash = prev->hide_headers_hash;
 
         if (conf->hide_headers_hash.buckets
-            && ((conf->cache == NULL) == (prev->cache == NULL)))
+#if (NGX_HTTP_CACHE)
+            && ((conf->cache == NULL) == (prev->cache == NULL))
+#endif
+           )
         {
             return NGX_OK;
         }