mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-24 04:14:57 +08:00
Py3: Exception doesn't have to be bytes
This commit is contained in:
committed by
Maximilian Hils
parent
f48073af56
commit
b03a98f9fc
@@ -191,7 +191,7 @@ class Response(_HTTPMessage):
|
||||
if self.ws:
|
||||
if not settings.websocket_key:
|
||||
raise exceptions.RenderError(
|
||||
b"No websocket key - have we seen a client handshake?"
|
||||
"No websocket key - have we seen a client handshake?"
|
||||
)
|
||||
if not self.status_code:
|
||||
tokens.insert(
|
||||
|
||||
Reference in New Issue
Block a user