From a39a06321de3e74519fcae8dab1c974bb79f84b6 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Jacquier Date: Tue, 19 Mar 2019 23:37:29 +0100 Subject: [PATCH] fixup! Improve restart on 403 forbidden try restart 10 times Signed-off-by: Pierre-Emmanuel Jacquier --- pkg/routes/routes.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/routes/routes.go b/pkg/routes/routes.go index 9fe4fd8..974584e 100644 --- a/pkg/routes/routes.go +++ b/pkg/routes/routes.go @@ -102,6 +102,8 @@ func (p *proxy) reverseProxy(c *gin.Context) { if resp.StatusCode == http.StatusForbidden && forbiddenRestart > 0 { forbiddenRestart-- return true + } else if resp.StatusCode == http.StatusForbidden { + return false } copyHTTPHeader(c, resp.Header)