Skip to content

Commit

Permalink
omit response when asyncio websocket ends (Fixes #120)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Jun 29, 2019
1 parent a440498 commit f130746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engineio/asyncio_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ async def handle_request(self, *args, **kwargs):
self.logger.warning('Method %s not supported', method)
r = self._method_not_found()
if not isinstance(r, dict):
return r if r is not None else []
return r
if self.http_compression and \
len(r['response']) >= self.compression_threshold:
encodings = [e.split(';')[0].strip() for e in
Expand Down

0 comments on commit f130746

Please sign in to comment.