cowboy
cowboy copied to clipboard
Documentation error for web socket subprotocol code example
The subprotocol example in the Cowboy documentation doesn't work. Calling cowboy_req:parse_header(<<"sec-websocket-protocol">>, Req0) returns a list of binaries, and not a tuple list, so calling lists:keymember/3 on it won't work.