From 5bac7f0ca6017837d119e0fcec9ffbaa6484ef9d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 16 Nov 2014 17:31:11 +0900 Subject: [PATCH] python: Fix request is not sent without TLS --- python/nghttp2.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/nghttp2.pyx b/python/nghttp2.pyx index 001ae43e..331343dc 100644 --- a/python/nghttp2.pyx +++ b/python/nghttp2.pyx @@ -1471,7 +1471,7 @@ if asyncio: for method,scheme,host,path,headers,body,handler in send_pending: self.send_request(method=method, scheme=scheme, host=host, path=path,\ headers=headers, body=body, handler=handler) - + self.http2.send_data() def connection_lost(self, exc): logging.info('connection_lost') @@ -1504,6 +1504,7 @@ if asyncio: self.http2.send_request(method=method, scheme=scheme, host=host, path=path,\ headers=headers, body=body, handler=handler) + self.http2.send_data() except Exception as err: sys.stderr.write(traceback.format_exc()) self.transport.close()