Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed websocket origin header

  • Loading branch information...
commit 59a72fdfc0d401a11f30f5345e9f66178fef2907 1 parent 7ecda73
@ostinelli authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/misultin_websocket.erl
View
2  src/misultin_websocket.erl
@@ -58,7 +58,7 @@ check(WsVersions, _Path, Headers) ->
connect(ServerRef, SessionsRef, #req{headers = Headers} = Req, #ws{vsn = Vsn, socket = Socket, socket_mode = SocketMode, path = Path} = Ws, WsLoop) ->
?LOG_DEBUG("building handshake response", []),
% get data
- Origin = case misultin_utility:header_get_value('Origin', Headers) of
+ Origin = case misultin_utility:header_get_value('Sec-Websocket-Origin', Headers) of
false ->
misultin_utility:header_get_value('Origin', Headers);
OriginHeader ->
Please sign in to comment.
Something went wrong with that request. Please try again.