Skip to content

Commit

Permalink
Merge pull request boto#1528 from joguSD/remove-request-url
Browse files Browse the repository at this point in the history
Remove request_url kwarg as it's not support in all urllib3 versions
  • Loading branch information
joguSD authored Aug 24, 2018
2 parents f8365c3 + 80b452d commit 25fec7e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion botocore/httpsession.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ def send(self, request):
urllib_response = conn.urlopen(
method=request.method,
url=request_target,
request_url=request.url,
body=request.body,
headers=request.headers,
retries=False,
Expand Down
4 changes: 2 additions & 2 deletions botocore/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def read(self, amt=None):
try:
chunk = self._raw_stream.read(amt)
except URLLib3ReadTimeoutError as e:
url = self._raw_stream.geturl()
raise ReadTimeoutError(endpoint_url=url, error=e)
# TODO: the url will be None as urllib3 isn't setting it yet
raise ReadTimeoutError(endpoint_url=e.url, error=e)
self._amount_read += len(chunk)
if amt is None or (not chunk and amt > 0):
# If the server sends empty contents or
Expand Down
1 change: 0 additions & 1 deletion tests/unit/test_http_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ def assert_request_sent(self, headers=None, body=None, url='/'):
assert_same_host=False,
preload_content=False,
decode_content=False,
request_url=ANY,
)

def test_forwards_max_pool_size(self):
Expand Down

0 comments on commit 25fec7e

Please sign in to comment.