[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2021-12-27 16:06:57 +00:00
parent cca40b1a31
commit 178cb321aa
2 changed files with 10 additions and 6 deletions

View File

@ -22,7 +22,9 @@ class ModifyWebsocketResponsePlugin(HttpProxyBasePlugin):
while len(remaining) > 0:
response = WebsocketFrame()
remaining = response.parse(remaining)
self.client.queue(memoryview(
WebsocketFrame.text(b"modified websocket response")
))
self.client.queue(
memoryview(
WebsocketFrame.text(b'modified websocket response'),
),
)
return memoryview(b'')

View File

@ -39,6 +39,8 @@ class WebServerPlugin(HttpWebServerBasePlugin):
self.client.queue(HTTPS_RESPONSE)
def on_websocket_message(self, frame: WebsocketFrame) -> None:
self.client.queue(memoryview(
WebsocketFrame.text(b"Websocket route response"),
))
self.client.queue(
memoryview(
WebsocketFrame.text(b'Websocket route response'),
),
)