Skip to content

Commit d60ea31

Browse files
author
Luke Bakken
committed
Use buffering for HTTP headers. Resolves #277
1 parent 134aa51 commit d60ea31

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

riak/transports/http/connection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ def _request(self, method, uri, headers={}, body='', stream=False):
3131

3232
try:
3333
self._connection.request(method, uri, body, headers)
34-
response = self._connection.getresponse(buffering=True)
34+
try:
35+
response = self._connection.getresponse(buffering=True)
36+
except TypeError:
37+
response = self._connection.getresponse()
3538

3639
if stream:
3740
# The caller is responsible for fully reading the

0 commit comments

Comments
 (0)