hyperium / http

Rust HTTP types
Apache License 2.0
1.15k stars 285 forks source link

Failed to parse a valid url #693

Closed MatrixDev closed 6 months ago

MatrixDev commented 6 months ago

Basically I'm trying to write a stored-requests server for PBS using Actix but Uri failes to parse its request. I've checked in Chrome devtools and Wireshark, they parse it without any problems.

Uri in question is:

http://127.0.0.1/?request-ids=["0689a263-318d-448b-a3d4-b02e8a709d9d"]&imp-ids=["prebid-demo-banner-320-50"]

Running following code panics with static str is not valid URI: invalid uri character:

let uri = Uri::from_static(r#"http://127.0.0.1/?request-ids=["0689a263-318d-448b-a3d4-b02e8a709d9d"]&imp-ids=["prebid-demo-banner-320-50"]"#);
MatrixDev commented 6 months ago

This is not supported by RFC 3986