Skip to content

Commit 5bd5a46

Browse files
committed
replace read_and_close with text in aiohttp adapter
1 parent 7c36f35 commit 5bd5a46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pusher/aiohttp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ def send_request(self, request):
3535
connector=self.conn),
3636
timeout=self.client.timeout)
3737

38-
body = yield from response.read_and_close()
39-
return process_response(response.status, body.decode('utf8'))
38+
body = yield from response.text('utf-8')
39+
return process_response(response.status, body)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
tests_require=['nose', 'mock', 'HTTPretty'],
4747

4848
extras_require={
49-
'aiohttp': ['aiohttp>=0.9.0'],
49+
'aiohttp': ['aiohttp>=0.20.0'],
5050
'tornado': ['tornado>=4.0.0']
5151
},
5252

0 commit comments

Comments
 (0)