Skip to content

Commit

Permalink
Fixed: incorrect WSGI start_response signature.
Browse files Browse the repository at this point in the history
This would cause error such as "<lambda>() takes exactly 2 arguments (3 given) error" when something like Sentry's raven tried to provide the optional exc_info argument.
  • Loading branch information
aljungberg committed Jun 2, 2014
1 parent cb5065f commit cee0fe0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion geventwebsocket/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def run_websocket(self):
try:
self.server.clients[self.client_address] = Client(
self.client_address, self.websocket)
self.application(self.environ, lambda s, h: [])
def start_response(status, headerlist, exc_info=None):
return []
self.application(self.environ, start_response)
finally:
del self.server.clients[self.client_address]
if not self.websocket.closed:
Expand Down

0 comments on commit cee0fe0

Please sign in to comment.