diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2022-05-31 00:14:11 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2022-05-31 00:14:11 +0300 |
commit | bfc5b35827903a3c543b58e4562db8b62021c164 (patch) | |
tree | c308d9b8745ccab841a91e5a1dac54b585817f95 | |
parent | 887d51938ff8ce853e76f746e6a080a18005f6d3 (diff) | |
download | nginx-bfc5b35827903a3c543b58e4562db8b62021c164.tar.gz |
Upstream: fixed build without http cache (broken by cd73509f21e2).
-rw-r--r-- | src/http/ngx_http_upstream.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 80b4a37be..fa71949a5 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -5183,9 +5183,6 @@ static ngx_int_t ngx_http_upstream_process_vary(ngx_http_request_t *r, ngx_table_elt_t *h, ngx_uint_t offset) { - u_char *p; - size_t len; - ngx_str_t vary; ngx_table_elt_t **ph; ngx_http_upstream_t *u; @@ -5198,6 +5195,10 @@ ngx_http_upstream_process_vary(ngx_http_request_t *r, h->next = NULL; #if (NGX_HTTP_CACHE) + { + u_char *p; + size_t len; + ngx_str_t vary; if (u->conf->ignore_headers & NGX_HTTP_UPSTREAM_IGN_VARY) { return NGX_OK; @@ -5249,7 +5250,7 @@ ngx_http_upstream_process_vary(ngx_http_request_t *r, } r->cache->vary = vary; - + } #endif return NGX_OK; |