2233d1ca17
Add validation check about websocket path Motivation: I add websocket handler in custom server with netty. I first add WebSocketServerProtocolHandler in my channel pipeline. It does work! but I found that it can pass "/websocketabc". (websocketPath is "/websocket") Modification: `isWebSocketPath()` method of `WebSocketServerProtocolHandshakeHandler` now checks that "startsWith" applies to the first URL path component, rather than the URL as a string. Result: Requests to "/websocketabc" are no longer passed to handlers for requests that starts-with "/websocket". |
||
---|---|---|
.. | ||
src | ||
pom.xml |