hyper-tls icon indicating copy to clipboard operation
hyper-tls copied to clipboard

Unrecognized schemas fetched HTTP

Open jsha opened this issue 4 years ago • 1 comments

I recently found that the reqwest library was fetching anything with an unrecognized scheme (like hxxps: or htps: as plain HTTP: https://github.com/seanmonstar/reqwest/issues/919. That was fixed in seanmonstar/reqwest#921.

This crate appears to have the same problem: Because it calls http.enforce_http(false) (https://github.com/hyperium/hyper-tls/blob/7c9adcdebba980ed3d3a6190480fafe37628264e/src/client.rs#L50), there is nothing enforcing that the scheme is either HTTP or HTTPS.

jsha avatar May 31 '20 18:05 jsha

this is likely something that needs to be fixed upstream in hyper? cc @seanmonstar

LucioFranco avatar Jun 15 '20 16:06 LucioFranco