From 9d476a42d14964b2675d8621df827d3cf6642dba Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 22 May 2021 19:46:40 +0200 Subject: [PATCH] web: don't set X-Forwarded-Proto when no request TLS Options are set Signed-off-by: Jens Langhammer --- internal/web/web_proxy.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/web/web_proxy.go b/internal/web/web_proxy.go index b4cb13d20..2eb7f7ab9 100644 --- a/internal/web/web_proxy.go +++ b/internal/web/web_proxy.go @@ -18,8 +18,6 @@ func (ws *WebServer) configureProxy() { } if req.TLS != nil { req.Header.Set("X-Forwarded-Proto", "https") - } else { - req.Header.Set("X-Forwarded-Proto", "http") } } rp := &httputil.ReverseProxy{Director: director}