Bug fixes
-
Started rejecting ASCII hostnames with invalid characters. For host strings that
look like authority strings, the exception message includes advice on what to do
instead -- by :user:mjpieters
. -
Fixed IPv6 addresses missing brackets when the :class:
~yarl.URL
was converted to a string -- by :user:bdraco
.
Features
-
Added :attr:
~yarl.URL.host_subcomponent
which returns the :rfc:3986#section-3.2.2
host subcomponent -- by :user:bdraco
.The only current practical difference between :attr:
~yarl.URL.raw_host
and :attr:~yarl.URL.host_subcomponent
is that IPv6 addresses are returned bracketed.Related issues and pull requests on GitHub:
#1159.