Skip to content

Commit 3643d70

Browse files
Floris Bruynooghedjc
authored andcommitted
Allow hyper client to make http connections
When using the DefaultServiceAccount the request is over http, using https there is not supported. Since all the used URLs are hardcoded there is no risk of accidentally not using https when needed.
1 parent b352eb0 commit 3643d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async fn get_authentication_manager(
100100
let https = HttpsConnectorBuilder::new().with_native_roots();
101101

102102
let client =
103-
Client::builder().build::<_, hyper::Body>(https.https_only().enable_http2().build());
103+
Client::builder().build::<_, hyper::Body>(https.https_or_http().enable_http2().build());
104104

105105
let custom = match credential_path {
106106
Some(path) => CustomServiceAccount::from_file(path).await,

0 commit comments

Comments
 (0)