diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-12-18 10:17:14 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-12-18 11:20:18 +0100 |
commit | 417a860f322769961dfae470aa065df4457162e1 (patch) | |
tree | 35ec7192fb7e4a45d7fea270ee9d71543c6069cb /mitmproxy/websocket.py | |
parent | 4a3702792cc0270773d321b7b28daa0e3df023c2 (diff) | |
download | mitmproxy-417a860f322769961dfae470aa065df4457162e1.tar.gz mitmproxy-417a860f322769961dfae470aa065df4457162e1.tar.bz2 mitmproxy-417a860f322769961dfae470aa065df4457162e1.zip |
add tests
Diffstat (limited to 'mitmproxy/websocket.py')
-rw-r--r-- | mitmproxy/websocket.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/websocket.py b/mitmproxy/websocket.py index ade23732..8efd4117 100644 --- a/mitmproxy/websocket.py +++ b/mitmproxy/websocket.py @@ -13,7 +13,7 @@ class WebSocketMessage(serializable.Serializable): def __init__( self, type: int, from_client: bool, content: bytes, timestamp: Optional[int]=None ) -> None: - self.type = wsproto.frame_protocol.Opcode(type) + self.type = wsproto.frame_protocol.Opcode(type) # type: ignore self.from_client = from_client self.content = content self.timestamp = timestamp or int(time.time()) # type: int |