Skip to content

Commit

Permalink
actually write request into transport
Browse files Browse the repository at this point in the history
  • Loading branch information
etataurov committed Feb 26, 2016
1 parent 05fc302 commit 3204a72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions asyncio_apns/h2_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ def send_request(self, headers, body=None):
if body is not None:
self.conn.send_data(stream_id, body)
self.conn.end_stream(stream_id)

self.transport.write(self.conn.data_to_send())

future = asyncio.Future(loop=self.loop)
self.response_futures.append(future)
return future
Expand Down

0 comments on commit 3204a72

Please sign in to comment.