chore: modernize
This commit is contained in:
parent
2132d9be98
commit
f332798dd0
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ func isWebSocket(req *http.Request) bool {
|
|||
|
||||
func headerContainsToken(h http.Header, key, token string) bool {
|
||||
for _, v := range h.Values(key) {
|
||||
for _, part := range strings.Split(v, ",") {
|
||||
for part := range strings.SplitSeq(v, ",") {
|
||||
if strings.EqualFold(strings.TrimSpace(part), token) {
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue