From 83c7da38310fd756d41f60b2f83c8fd639daed33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Thu, 9 Feb 2012 17:16:21 +0100 Subject: [PATCH] Handle all draft-hybi handshake in this same way --- src/web/ejabberd_websocket.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/ejabberd_websocket.erl b/src/web/ejabberd_websocket.erl index 5cd501f89..bc3dc4255 100644 --- a/src/web/ejabberd_websocket.erl +++ b/src/web/ejabberd_websocket.erl @@ -249,7 +249,7 @@ handshake({'draft-hixie', 68}, _Sock,_SocketMod, _Headers, {Path, Origin, Host, lists:concat([Host, integer_to_list(Port)]), "/",string:join(Path,"/"), "\r\n\r\n" ]; -handshake({'draft-hybi', 8}, Sock,SocketMod, Headers, {Path, Q,Origin, Host, Port}) -> +handshake({'draft-hybi', _}, Sock,SocketMod, Headers, {Path, Q,Origin, Host, Port}) -> % build data {_, Key} = lists:keyfind("Sec-Websocket-Key",1, Headers), Hash = jlib:encode_base64(binary_to_list(sha:sha1(Key++"258EAFA5-E914-47DA-95CA-C5AB0DC85B11"))),