diff --git a/smart_open/http.py b/smart_open/http.py index 438ae0f4..5e5b8140 100644 --- a/smart_open/http.py +++ b/smart_open/http.py @@ -122,14 +122,7 @@ def __init__(self, url, mode='r', buffer_size=DEFAULT_BUFFER_SIZE, self.timeout = timeout - self.response = session.get( - url, - auth=auth, - cert=cert, - stream=True, - headers=self.headers, - timeout=self.timeout, - ) if session is not None else requests.get( + self.response = self.session.get( url, auth=auth, cert=cert,