Commit c0fe72f
committed
utils: Use hostname for netrc instead split netloc
This patch uses the "hostname" attribute from the parsed url to get the
host, instead of trying to calculate the host from netloc that can
produce errors when "http://username:password@domain.com" format is
used.1 parent f72c4d1 commit c0fe72f
1 file changed
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 239 | + | |
246 | 240 | | |
247 | 241 | | |
248 | 242 | | |
| |||
0 commit comments