Skip to content

Commit

Permalink
Fix leftover from #825
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange authored Oct 28, 2024
1 parent c0cb405 commit b3a223d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions smart_open/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b3a223d

Please sign in to comment.