mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Add link to magic string
This commit is contained in:
parent
07c9fffab7
commit
e30e6dca8a
1 changed files with 3 additions and 1 deletions
|
@ -545,7 +545,9 @@ class WebSocket(object):
|
|||
return False
|
||||
result = result.lower()
|
||||
|
||||
value = key + "258EAFA5-E914-47DA-95CA-C5AB0DC85B11".encode()
|
||||
# https://tools.ietf.org/html/rfc6455#page-6
|
||||
magic_string = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11".encode()
|
||||
value = key + magic_string
|
||||
hashed = base64.encodestring(hashlib.sha1(value).digest()).strip().lower().decode()
|
||||
return hashed == result
|
||||
|
||||
|
|
Loading…
Reference in a new issue