Closed rom9 closed 1 year ago
This PR modifies the "Upgrade" header check in DefaultHandler.handleRequest by using a case-insensitive comparison, as per the WebSocket RFC. Sorry for the Yoda condition... it seems that Undertow's HeaderMap.getFirst() can return null.
DefaultHandler.handleRequest
HeaderMap.getFirst()
Fixes #77
sounds good to me
thanks!
This PR modifies the "Upgrade" header check in
DefaultHandler.handleRequest
by using a case-insensitive comparison, as per the WebSocket RFC. Sorry for the Yoda condition... it seems that Undertow'sHeaderMap.getFirst()
can return null.Fixes #77