changeset 7649:3c8082c3f98a

Upstream: jump out of loop after matching the status code.
author Jinhua Tan <312841925@qq.com>
date Wed, 13 May 2020 22:02:47 +0800
parents 028b16e2798f
children abb6cc8f1dd8
files src/http/ngx_http_upstream.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c	Fri May 08 19:19:16 2020 +0300
+++ b/src/http/ngx_http_upstream.c	Wed May 13 22:02:47 2020 +0800
@@ -2502,6 +2502,8 @@
         }
 
 #endif
+
+        break;
     }
 
 #if (NGX_HTTP_CACHE)