Bump hyper-rustls version

This commit is contained in:
Ferdia McKeogh
2022-04-21 18:24:11 +01:00
parent 7df7d346b8
commit 42090e283d
3 changed files with 9 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ path = "src/main.rs"
% endif
[dependencies]
hyper-rustls = "^0.22"
hyper-rustls = "0.23.0"
## Must match the one hyper uses, otherwise there are duplicate similarly named `Mime` structs
mime = "^ 0.2.0"
serde = "^ 1.0"

View File

@@ -261,7 +261,7 @@ let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = ${hub_type}::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth);\
let mut hub = ${hub_type}::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth);\
</%def>
## You will still have to set the filter for your comment type - either nothing, or rust_doc_comment !

View File

@@ -121,7 +121,13 @@ impl<'n> Engine<'n> {
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).persist_tokens_to_disk(format!("{}/${util.program_name()}", config_dir)).build().await.unwrap();
let client = hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots());
let client = hyper::Client::builder().build(
hyper_rustls::HttpsConnector::with_native_roots()
.https_or_http()
.enable_http1()
.enable_http2()
.build()
);
<% gpm = gen_global_parameter_names(parameters) %>\
let engine = Engine {
opt: opt,