mirror of
https://github.com/nginx/nginx.git
synced 2025-06-20 20:51:09 +08:00
Upstream: fixed build without http cache (broken by cd73509f21e2).
This commit is contained in:
parent
887d51938f
commit
bfc5b35827
@ -5183,9 +5183,6 @@ static ngx_int_t
|
|||||||
ngx_http_upstream_process_vary(ngx_http_request_t *r,
|
ngx_http_upstream_process_vary(ngx_http_request_t *r,
|
||||||
ngx_table_elt_t *h, ngx_uint_t offset)
|
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_table_elt_t **ph;
|
||||||
ngx_http_upstream_t *u;
|
ngx_http_upstream_t *u;
|
||||||
|
|
||||||
@ -5198,6 +5195,10 @@ ngx_http_upstream_process_vary(ngx_http_request_t *r,
|
|||||||
h->next = NULL;
|
h->next = NULL;
|
||||||
|
|
||||||
#if (NGX_HTTP_CACHE)
|
#if (NGX_HTTP_CACHE)
|
||||||
|
{
|
||||||
|
u_char *p;
|
||||||
|
size_t len;
|
||||||
|
ngx_str_t vary;
|
||||||
|
|
||||||
if (u->conf->ignore_headers & NGX_HTTP_UPSTREAM_IGN_VARY) {
|
if (u->conf->ignore_headers & NGX_HTTP_UPSTREAM_IGN_VARY) {
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
@ -5249,7 +5250,7 @@ ngx_http_upstream_process_vary(ngx_http_request_t *r,
|
|||||||
}
|
}
|
||||||
|
|
||||||
r->cache->vary = vary;
|
r->cache->vary = vary;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user