diff --git a/internal/httpproxy/auth.go b/internal/httpproxy/auth.go index 94096637..3b48e71f 100644 --- a/internal/httpproxy/auth.go +++ b/internal/httpproxy/auth.go @@ -10,6 +10,7 @@ func isAuthorized(responseWriter http.ResponseWriter, request *http.Request, username, password string) (authorized bool) { basicAuth := request.Header.Get("Proxy-Authorization") if len(basicAuth) == 0 { + responseWriter.Header().Set("Proxy-Authenticate", `Basic realm="Access to Gluetun over HTTP"`) responseWriter.WriteHeader(http.StatusProxyAuthRequired) return false }