Skip to content

Commit 42717c7

Browse files
authored
Merge pull request #339 from ginglis13/fix-pluto-proxy-panic
fix: parse proxy URI with prepending URL scheme
2 parents 78cb2f3 + a9b14ec commit 42717c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sources/aws-smithy-experimental/src/hyper_1_0.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ mod build_connector {
256256
}
257257
let mut proxy = Proxy::new(intercept, proxy_uri);
258258
// Parse https_proxy as URL to extract out auth information if any
259-
let proxy_url = Url::parse(https_proxy).expect("Unable to parse HTTPS proxy as URL");
259+
let proxy_url =
260+
Url::parse(&proxy.uri().to_string()).expect("Unable to parse HTTPS proxy as URL");
260261

261262
if !proxy_url.username().is_empty() || proxy_url.password().is_some() {
262263
proxy.set_authorization(Authorization::basic(

0 commit comments

Comments
 (0)