diff --git a/pkg/requests/util/util.go b/pkg/requests/util/util.go index 2dd7e97a..42963743 100644 --- a/pkg/requests/util/util.go +++ b/pkg/requests/util/util.go @@ -32,7 +32,7 @@ func GetRequestHost(req *http.Request) string { host = req.Host } else { // Handle multiple hosts in X-Forwarded-Host (comma-separated) - // Take only the first host as per RFC 7239 + // Take only the first host as common implementation convention if hosts := strings.Split(host, ","); len(hosts) > 0 { host = strings.TrimSpace(hosts[0]) }