From ad9dee617312499a2805615b6d3a557df0cfd0e1 Mon Sep 17 00:00:00 2001 From: "s.v.churanov" Date: Tue, 24 Mar 2026 21:02:54 +0300 Subject: [PATCH] fix: update comment Signed-off-by: s.v.churanov --- pkg/requests/util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) }