cowboy icon indicating copy to clipboard operation
cowboy copied to clipboard

Documentation error for web socket subprotocol code example

Open eproxus opened this issue 2 years ago • 0 comments

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.

eproxus avatar May 31 '22 06:05 eproxus