Skip to content

Commit

Permalink
Use crypto:hash instead of crypto:sha to be compatible with R16B1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Karolis Petrauskas committed Jun 20, 2013
1 parent 4aa0061 commit 7df6a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yaws_websockets.erl
Expand Up @@ -1248,5 +1248,5 @@ query_header(Header, Headers, Default) ->

hash_nonce(Nonce) ->
Salted = Nonce ++ "258EAFA5-E914-47DA-95CA-C5AB0DC85B11",
HashBin = crypto:sha(Salted),
HashBin = crypto:hash(sha, Salted),
base64:encode_to_string(HashBin).

0 comments on commit 7df6a9b

Please sign in to comment.