mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-06 19:45:20 +01:00
Bump hyper-rustls version
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 !
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user