Skip to content

Commit

Permalink
bump hyper, bump multipart (thart means our audit is clean now)
Browse files Browse the repository at this point in the history
  • Loading branch information
kworr committed Aug 23, 2024
1 parent fa30051 commit 2900237
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ tokio = { version = "1.2", features = ["fs", "rt"]}

tracing = "0.1.23"
tracing-futures = "0.2"
multipart = { version = "0.18.0", default-features = false, features = ["client"] }
multipart-2021 = { version = "0.19.0", default-features = false, features = ["client"] }

telegram-bot-raw = { version = "0.9.0", path = "../raw" }

hyper = { version = "0.14", features = [ "client", "http1", "http2" ] }
hyper-tls = { version = "0.5", optional = true }
hyper-tls = { version = "0.5.0", optional = true }
futures = "0.3"
hyper-rustls = { version = "0.22", optional = true }
hyper-rustls = { version = "0.25.0", optional = true, features = [ "http2", "rustls-native-certs" ] }

[dev-dependencies]
tracing-subscriber = { version = "0.3.18", features = [ "env-filter" ] }
Expand Down
6 changes: 3 additions & 3 deletions lib/src/connector/hyper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ use hyper::{
Method, Request, Uri,
};
#[cfg(feature = "rustls")]
use hyper_rustls::HttpsConnector;
use hyper_rustls::HttpsConnectorBuilder;
#[cfg(feature = "openssl")]
use hyper_tls::HttpsConnector;
use multipart::client::lazy::Multipart;
use multipart_2021::client::lazy::Multipart;
use telegram_bot_raw::{
Body as TelegramBody, HttpRequest, HttpResponse, Method as TelegramMethod, MultipartValue, Text,
};
Expand Down Expand Up @@ -159,7 +159,7 @@ impl<C: Connect + std::fmt::Debug + 'static + Clone + Send + Sync> Connector for

pub fn default_connector() -> Result<Box<dyn Connector>, Error> {
#[cfg(feature = "rustls")]
let connector = HttpsConnector::with_native_roots();
let connector = HttpsConnectorBuilder::new().with_native_roots()?.https_only().enable_http1().enable_http2().build();

#[cfg(feature = "openssl")]
let connector = HttpsConnector::new();
Expand Down

0 comments on commit 2900237

Please sign in to comment.