ninenines / cowboy

Small, fast, modern HTTP server for Erlang/OTP.

Home Page:https://ninenines.eu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation error for web socket subprotocol code example

eproxus opened this issue · 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.

Done, will push soon. Thanks!