提交 c6da8b6f 编写于 作者: C chengkang

fix issue #2448

上级 d4eb8eb4
......@@ -399,7 +399,7 @@ class HTTP1Connection(httputil.HTTPConnection):
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):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册