fix: update comment

Signed-off-by: s.v.churanov <s.v.churanov@tbank.ru>
This commit is contained in:
s.v.churanov 2026-03-24 21:02:54 +03:00
parent c6ef452c6c
commit ad9dee6173
1 changed files with 1 additions and 1 deletions

View File

@ -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])
}