web: don't set X-Forwarded-Proto when no request TLS Options are set

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-22 19:46:40 +02:00
parent 2c816e6162
commit 9d476a42d1
1 changed files with 0 additions and 2 deletions

View File

@ -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}