You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prints Ok("udp://:2223/") in v2.1.0, but now prints Err(EmptyHost) in v2.1.1. Is this an intended change? Is there any way I can get it to parse these hostless urls?
The text was updated successfully, but these errors were encountered:
I'm no expert, but I believe this is the intended behavior of adhering to the URL specification. I think the relevant section is https://url.spec.whatwg.org/#hostname-state , and if I'm correct this URL is hitting the following condition:
Otherwise, if c is U+003A (:) and the [] flag is unset, then:
If buffer is the empty string, validation error, return failure.
Yeah, I guess this is intended behavior. It also seems fairly reasonable, so I'll close this issue. Feel free to reopen if you disagree and have a better plan of action!
The code
Prints
Ok("udp://:2223/")
in v2.1.0, but now printsErr(EmptyHost)
in v2.1.1. Is this an intended change? Is there any way I can get it to parse these hostless urls?The text was updated successfully, but these errors were encountered: