]> git.kaiwu.me - nginx.git/commitdiff
fix building --without-http-cache, broken in r2930
authorIgor Sysoev <igor@sysoev.ru>
Mon, 15 Jun 2009 14:25:08 +0000 (14:25 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 15 Jun 2009 14:25:08 +0000 (14:25 +0000)
src/http/modules/ngx_http_proxy_module.c
src/http/ngx_http_upstream.c

index f0aadb4022e6990bbea1ec1fbe209ab960df3898..f2d939ed740506a382b9d5240dc143668c133586 100644 (file)
@@ -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;
     }
index 87df5716973a824703ea63acc33dfae76aadd585..19b6fb8c7918a6474927afaa5ab89e49ba4f29d1 100644 (file)
@@ -4086,7 +4086,10 @@ ngx_http_upstream_hide_headers_hash(ngx_conf_t *cf,
         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;
         }