diff options
-rw-r--r-- | src/cowboy_req.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl index 973cc65..89758dd 100644 --- a/src/cowboy_req.erl +++ b/src/cowboy_req.erl @@ -458,6 +458,11 @@ parse_header(Name, Req, Default) when Name =:= <<"if-modified-since">>; Name =:= <<"if-unmodified-since">> -> parse_header(Name, Req, Default, fun cowboy_http:http_date/1); +parse_header(Name, Req, Default) when Name =:= <<"sec-websocket-protocol">> -> + parse_header(Name, Req, Default, + fun (Value) -> + cowboy_http:nonempty_list(Value, fun cowboy_http:token/2) + end); %% @todo Extension parameters. parse_header(Name, Req, Default) when Name =:= <<"transfer-encoding">> -> parse_header(Name, Req, Default, |