Upstream: jump out of loop after matching the status code.

This commit is contained in:
Jinhua Tan 2020-05-13 22:02:47 +08:00
parent 41ecd45a5b
commit b47c1f35e2

View File

@ -2502,6 +2502,8 @@ ngx_http_upstream_test_next(ngx_http_request_t *r, ngx_http_upstream_t *u)
} }
#endif #endif
break;
} }
#if (NGX_HTTP_CACHE) #if (NGX_HTTP_CACHE)