From 6f6a89acbebe4a9ad2a2909acb0450d1f85c6059 Mon Sep 17 00:00:00 2001 From: hippoz Date: Wed, 3 Feb 2021 02:26:48 +0200 Subject: [PATCH] fixed unclear variable name --- lib/handshake.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/handshake.js b/lib/handshake.js index f6abb61..c6630a6 100644 --- a/lib/handshake.js +++ b/lib/handshake.js @@ -9,9 +9,9 @@ const generateWebsocketAcceptValue = (websocketKey) => { } 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 }; \ No newline at end of file