Skip to content

Commit

Permalink
fix issue tornadoweb#2448
Browse files Browse the repository at this point in the history
  • Loading branch information
garenchan authored and bdarnell committed Sep 16, 2018
1 parent 33f7c28 commit 3846df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/http1connection.py
Expand Up @@ -411,7 +411,7 @@ def write_headers(self, start_line, headers, chunk=None, callback=None):
if chunk:
data += self._format_chunk(chunk)
self._pending_write = self.stream.write(data)
self._pending_write.add_done_callback(self._on_write_complete)
future_add_done_callback(self._pending_write, self._on_write_complete)
return future

def _format_chunk(self, chunk):
Expand Down

0 comments on commit 3846df6

Please sign in to comment.