forked from Ivasoft/traefik
fix: infinite loop in forwarded header middleware.
Co-authored-by: kevinpollet <pollet.kevin@gmail.com>
This commit is contained in:
committed by
GitHub
parent
4cabea069d
commit
bf4a578bbb
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user