From 413ab2aa5b7eea46bc3b90f2a3b4250ed71c4dd2 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Fri, 8 Jan 2021 21:43:39 +0100 Subject: [PATCH] Reverse proxy bugfix --- src/rev_proxy.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/rev_proxy.c b/src/rev_proxy.c index 2f14a24..8f77216 100644 --- a/src/rev_proxy.c +++ b/src/rev_proxy.c @@ -136,7 +136,6 @@ int rev_proxy_init(http_req *req, http_res *res, host_config *conf, sock *client res->status = http_get_status(502); print(ERR_STR "Unable to send request to server (3): %s" CLR_STR, sock_strerror(&rev_proxy)); sprintf(err_msg, "Unable to send request to server: %s.", sock_strerror(&rev_proxy)); - retry = tries < 4; goto proxy_err; } else if (ret == -2) { res->status = http_get_status(400); @@ -156,7 +155,6 @@ int rev_proxy_init(http_req *req, http_res *res, host_config *conf, sock *client res->status = http_get_status(502); print(ERR_STR "Unable to receive response from server: %s" CLR_STR, sock_strerror(&rev_proxy)); sprintf(err_msg, "Unable to receive response from server: %s.", sock_strerror(&rev_proxy)); - retry = tries < 4; goto proxy_err; }