Commit 3f383b61 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Fixed parameter bug

parent 002264c0
...@@ -126,10 +126,10 @@ def receive_frame(sock): ...@@ -126,10 +126,10 @@ def receive_frame(sock):
if mask: if mask:
masking_key = recvn(sock, 4) masking_key = recvn(sock, 4)
payload = mask(masking_key, recvn(payload_len)) payload = mask(masking_key, recvn(sock, payload_len))
else: else:
masking_key = '' masking_key = ''
payload = recvn(payload_len) payload = recvn(sock, payload_len)
return Frame(opcode, payload, masking_key=masking_key, final=final, return Frame(opcode, payload, masking_key=masking_key, final=final,
rsv1=rsv1, rsv2=rsv2, rsv3=rsv3) rsv1=rsv1, rsv2=rsv2, rsv3=rsv3)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment