mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-06 07:26:39 -04:00
fix(httpproxy): remove info log when no Proxy-Authorization header is present
This commit is contained in:
@@ -13,7 +13,6 @@ func (h *handler) isAuthorized(responseWriter http.ResponseWriter, request *http
|
||||
}
|
||||
basicAuth := request.Header.Get("Proxy-Authorization")
|
||||
if basicAuth == "" {
|
||||
h.logger.Info("Proxy-Authorization header not found from " + request.RemoteAddr)
|
||||
responseWriter.Header().Set("Proxy-Authenticate", `Basic realm="Access to Gluetun over HTTP"`)
|
||||
responseWriter.WriteHeader(http.StatusProxyAuthRequired)
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user