servo / rust-url

URL parser for Rust
https://docs.rs/url/
Apache License 2.0
1.27k stars 317 forks source link

URL http:www.google.com is passed as validated #893

Closed bert2002 closed 6 months ago

bert2002 commented 6 months ago

Hi, it seems that a url http:www.google.com is validated and not marked as invalid. I opened a bug for pydantic, but they say they use your library. Reference: https://github.com/pydantic/pydantic/issues/8508

Thanks, bert

valenting commented 6 months ago

It is a valid URL, though it is fixed to its canonical form during parsing. See the reference parser. Any reason why it shouldn't be accepted as valid?