using path_and_query():
Uri::builder()
.scheme(Scheme::HTTP)
.authority("localhost:8000")
.path_and_query("hello/world")
.build()
report no error, but rocket didn't accept it with:
Oct 12 19:24:35.028 DEBUG hyper::proto::h1::conn: parse error (invalid URI) with 115 bytes
Oct 12 19:24:35.028 DEBUG hyper::proto::h1::role: sending automatic response (400 Bad Request) for parse error
I believe this should be considered a bug either http or rocket, I needed to add a slash at the beginning "/hello/world"
using
path_and_query():report no error, but rocket didn't accept it with:
I believe this should be considered a bug either http or rocket, I needed to add a slash at the beginning
"/hello/world"