Emq-WebSocket-Protocol -> EMQ-WebSocket-Protocol

This commit is contained in:
turtled 2017-05-19 16:55:14 +08:00
parent 414f156d4a
commit c64f172174
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ check_protocol_header(Req) ->
end. end.
get_protocol_header(Req) -> get_protocol_header(Req) ->
case Req:get_header_value("Emq-WebSocket-Protocol") of case Req:get_header_value("EMQ-WebSocket-Protocol") of
undefined -> Req:get_header_value("Sec-WebSocket-Protocol"); undefined -> Req:get_header_value("Sec-WebSocket-Protocol");
Proto -> Proto Proto -> Proto
end. end.