hyperium / http

Rust HTTP types
Apache License 2.0
1.12k stars 283 forks source link

Invalid uri parse #686

Closed incker closed 3 months ago

incker commented 3 months ago

I am not sure, but looks like this have to be valid uris

http::Uri::try_from("127.0.0.1/#xnsub").unwrap();
http::Uri::try_from("127.0.0.1#xnsub").unwrap();
http::Uri::try_from("127.0.0.1/").unwrap();

But every line cause panic

seanmonstar commented 3 months ago

They are missing the scheme.