python: Fix request is not sent without TLS

This commit is contained in:
Tatsuhiro Tsujikawa 2014-11-16 17:31:11 +09:00
parent 08fea5705a
commit 5bac7f0ca6
1 changed files with 2 additions and 1 deletions

View File

@ -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()