mrkkrp / modern-uri

Modern library for working with URIs
Other
68 stars 18 forks source link

Allow empty host names #14

Closed mrkkrp closed 6 years ago

mrkkrp commented 6 years ago

Close #13.

According to https://tools.ietf.org/html/rfc3986#section-3.2.2, host names (reg-name, specifically) can be empty. Previously the code did not allow that, this commit fixes it.