mangos
mangos copied to clipboard
WS and WSS should permit empty path
An empty websocket path is the same same as "/" per the HTTP RFC. We should canonicalize the URL as specified.
It looks like this is done properly in the listener side already.
Actually because of the way the HTTP mux works, we might not want to do that. In particular, a path ending in "/" winds up getting muxed to all paths, whereas "" would only match the implied "/".
Some investigation may be warranted here.