summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2020-10-01 12:21:11 +0100
committerSergey Kandaurov <pluknet@nginx.com>2020-10-01 12:21:11 +0100
commit88cb4d3ab046622b2b71e4d94c583d45e00a56c4 (patch)
treea75aca6b6836c224a0030c32569b9cb0d289b417 /src/http/ngx_http_upstream.c
parentee4a6024cc0097d8ab29af8441172846de6b0f64 (diff)
parent135b707ab02d5921d7e789c231995f0cc11ae4a6 (diff)
downloadnginx-88cb4d3ab046622b2b71e4d94c583d45e00a56c4.tar.gz
nginx-88cb4d3ab046622b2b71e4d94c583d45e00a56c4.tar.bz2
Merged with the default branch.
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 88e7b6fad..53c77105b 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2486,7 +2486,7 @@ ngx_http_upstream_test_next(ngx_http_request_t *r, ngx_http_upstream_t *u)
#if (NGX_HTTP_CACHE)
if (u->cache_status == NGX_HTTP_CACHE_EXPIRED
- && ((u->conf->cache_use_stale & un->mask) || r->cache->stale_error))
+ && (u->conf->cache_use_stale & un->mask))
{
ngx_int_t rc;