Skip to content

Commit

Permalink
Add code on events.CloseConnection for wsproto
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Oct 29, 2022
1 parent 22bd00e commit 05dadf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uvicorn/protocols/websockets/wsproto_impl.py
Expand Up @@ -91,7 +91,7 @@ def data_received(self, data):
self.transport.write(self.conn.send(err.event_hint))
self.transport.close()
else:
self.handle_no_connect(events.CloseConnection())
self.handle_no_connect(events.CloseConnection(code=1007))
else:
self.handle_events()

Expand Down

0 comments on commit 05dadf7

Please sign in to comment.