diff --git a/internal/httpd/server.go b/internal/httpd/server.go index d532d020..f50d7d27 100644 --- a/internal/httpd/server.go +++ b/internal/httpd/server.go @@ -1191,8 +1191,9 @@ func (s *httpdServer) badHostHandler(w http.ResponseWriter, r *http.Request) { break } } + logger.Debug(logSender, "", "the host %q is not allowed", host) s.sendForbiddenResponse(w, r, util.NewI18nError( - util.NewGenericError(fmt.Sprintf("The host %q is not allowed", host)), + util.NewGenericError(http.StatusText(http.StatusForbidden)), util.I18nErrorConnectionForbidden, )) }