fix: infinite loop in forwarded header middleware.
Co-authored-by: kevinpollet <pollet.kevin@gmail.com>
This commit is contained in:
parent
4cabea069d
commit
bf4a578bbb
2 changed files with 71 additions and 1 deletions
|
@ -104,9 +104,10 @@ func isWebsocketRequest(req *http.Request) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
h = h[pos:]
|
||||
h = h[pos+1:]
|
||||
}
|
||||
}
|
||||
|
||||
return containsHeader(connection, "upgrade") && containsHeader(upgrade, "websocket")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue