diff options
author | Jinhua Tan <312841925@qq.com> | 2020-05-13 22:02:47 +0800 |
---|---|---|
committer | Jinhua Tan <312841925@qq.com> | 2020-05-13 22:02:47 +0800 |
commit | b47c1f35e2e421bc0e5be67afb897276324c57a4 (patch) | |
tree | 325f4d4f3fbcc4d3b9bffb0b26a914e5b7a1da47 /src | |
parent | 41ecd45a5bb78b2214c4515768a51aff0c57eead (diff) | |
download | nginx-b47c1f35e2e421bc0e5be67afb897276324c57a4.tar.gz nginx-b47c1f35e2e421bc0e5be67afb897276324c57a4.zip |
Upstream: jump out of loop after matching the status code.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_upstream.c | 2 |
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) |