You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Behind Istio that makes all HTTP headers it proxies to applications lowercase, this code here fails, it is using a HashMap and as a result is case sensitive.
Behind Istio that makes all HTTP headers it proxies to applications lowercase, this code here fails, it is using a HashMap and as a result is case sensitive.
https://github.com/usnistgov/jsip/blob/master/src/gov/nist/javax/sip/stack/WebSocketHttpHandshake.java#L114
Fails as it's looking for
Sec-WebSocket-Key
but theheaders
HashMap
would havesec-websocket-key
.For example:
Outputs:
Interestingly other parts of the code seem to be case insensitively written, e.g.
https://github.com/usnistgov/jsip/blob/master/src/gov/nist/javax/sip/stack/WebSocketHttpHandshake.java#L85
So behind Istio or other proxies that lowercase headers the response
Sec-WebSocket-Accept
header is always of the value of the stringnull
The text was updated successfully, but these errors were encountered: