aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinhua Tan <312841925@qq.com>2020-05-13 22:02:47 +0800
committerJinhua Tan <312841925@qq.com>2020-05-13 22:02:47 +0800
commitb47c1f35e2e421bc0e5be67afb897276324c57a4 (patch)
tree325f4d4f3fbcc4d3b9bffb0b26a914e5b7a1da47
parent41ecd45a5bb78b2214c4515768a51aff0c57eead (diff)
downloadnginx-b47c1f35e2e421bc0e5be67afb897276324c57a4.tar.gz
nginx-b47c1f35e2e421bc0e5be67afb897276324c57a4.zip
Upstream: jump out of loop after matching the status code.
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 89e1319f9..be96be47a 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2502,6 +2502,8 @@ ngx_http_upstream_test_next(ngx_http_request_t *r, ngx_http_upstream_t *u)
}
#endif
+
+ break;
}
#if (NGX_HTTP_CACHE)