mangos icon indicating copy to clipboard operation
mangos copied to clipboard

WS and WSS should permit empty path

Open gdamore opened this issue 6 years ago • 2 comments

An empty websocket path is the same same as "/" per the HTTP RFC. We should canonicalize the URL as specified.

gdamore avatar Jun 24 '18 03:06 gdamore

It looks like this is done properly in the listener side already.

gdamore avatar Sep 22 '19 20:09 gdamore

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.

gdamore avatar Sep 22 '19 21:09 gdamore