Skip to content
Myr

Fix breakage introduced by 8f591682

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Cory Benfield · committed by Cory Benfield · parent f7e0494 · Browse files · 2 files+9 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+9 added−2 removed

  • other:+9 added−2 removed

2 files+9 added−2 removed

modified:requests/adapters.py+2 added-2 removed
396 unmodified lines
397 # Receive the response from the server398 try:399 # For Python 2.7+ versions, use buffering of HTTP400 # responses401 r = conn.getresponse(buffering=True)401 r = low_conn.getresponse(buffering=True)402 except TypeError:403 # For compatibility with Python 2.6 versions and back404 r = conn.getresponse()404 r = low_conn.getresponse()405406 resp = HTTPResponse.from_httplib(407 r,408 pool=conn,
39 unmodified lines
modified:test_requests.py+7 added
1131 unmodified lines
11321133 next(r.iter_lines())1134 assert len(list(r.iter_lines())) == 311351136 def test_chunked_upload(self, httpbin):1137 """Can safely send generators."""1138 data = (c for c in 'abc')1139 r = requests.post(httpbin('post'), data=data, stream=True)1140 assert r.status_code == 2001141 assert r.request.headers['Transfer-Encoding'] == 'chunked'114211431144class TestContentEncodingDetection(unittest.TestCase):11451146 def test_none(self):1147 encodings = requests.utils.get_encodings_from_content('')
592 unmodified lines