Skip to content

Commit 47072ca

Browse files
committed
Cleanup ClientRequest.update_host
1 parent 1c8a575 commit 47072ca

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

aiohttp/client_reqrep.py

-7
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,6 @@ def update_host(self, url):
154154
if not url.host:
155155
raise InvalidURL(url)
156156

157-
# basic auth info
158-
username, password = url.user, url.password
159-
if username:
160-
self.auth = helpers.BasicAuth(username, password or '')
161-
162-
# Record entire netloc for usage in host header
163-
164157
scheme = url.scheme
165158
self.ssl = scheme in ('https', 'wss')
166159

0 commit comments

Comments
 (0)