fix: update comment
Signed-off-by: s.v.churanov <s.v.churanov@tbank.ru>
This commit is contained in:
parent
c6ef452c6c
commit
ad9dee6173
|
|
@ -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])
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue