fixed unclear variable name

This commit is contained in:
hippoz 2021-02-03 02:26:48 +02:00
parent c8b3190050
commit 6f6a89acbe
No known key found for this signature in database
GPG key ID: 7C52899193467641

View file

@ -9,9 +9,9 @@ const generateWebsocketAcceptValue = (websocketKey) => {
} }
const concatenated = websocketKey + handshakeGUID; const concatenated = websocketKey + handshakeGUID;
const sha1HashedInBase64 = crypto.createHash('sha1').update(concatenated, 'binary').digest('base64'); const sha1HashInBase64 = crypto.createHash('sha1').update(concatenated, 'binary').digest('base64');
return sha1HashedInBase64; return sha1HashInBase64;
}; };
module.exports = { generateWebsocketAcceptValue }; module.exports = { generateWebsocketAcceptValue };