Skip to content

Commit

Permalink
python: Fix request is not sent without TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Nov 16, 2014
1 parent 08fea57 commit 5bac7f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/nghttp2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 5bac7f0

Please sign in to comment.