.with_port()
makes a wrong url when contains IPv6 address
#451
Labels
.with_port()
makes a wrong url when contains IPv6 address
#451
Hi,
I noticed that methods like
.with_port()
,.with_user()
and.with_password()
return a wrong IPv6 url, example:prints:
The problem is in this line:
yarl/yarl/__init__.py
Line 839 in 9949de4
We should use self._make_netloc(..., encode=True) to produce the right url.
The text was updated successfully, but these errors were encountered: