bump to hyper-1.0.0-rc4
This commit is contained in:
@@ -26,8 +26,9 @@ rustls-pemfile = "1.0"
|
||||
tokio = { version = "1.23", features = ["full"] }
|
||||
tokio-rustls = { version = "0.24.0"}
|
||||
webpki-roots = { version = "0.23.0"}
|
||||
hyper = { version = "1.0.0-rc.3", features = ["server", "http1", "http2"] }
|
||||
http-body-util = "0.1.0-rc.2"
|
||||
hyper = { version = "1.0.0-rc.4", features = ["server", "http1", "http2"] }
|
||||
hyper-util = { git = "https://github.com/hyperium/hyper-util" }
|
||||
http-body-util = "0.1.0-rc.3"
|
||||
form_urlencoded = "1.1.0"
|
||||
sha1 = "0.10"
|
||||
sha2 = "0.10.6"
|
||||
|
||||
@@ -32,6 +32,7 @@ use hyper::{
|
||||
service::service_fn,
|
||||
Method, StatusCode, Uri,
|
||||
};
|
||||
use hyper_util::rt::TokioIo;
|
||||
use mail_parser::{decoders::base64::base64_decode, DateTime};
|
||||
use mail_send::Credentials;
|
||||
use serde::{Deserialize, Deserializer, Serialize, Serializer};
|
||||
@@ -194,7 +195,7 @@ async fn handle_request(
|
||||
if let Err(http_err) = http1::Builder::new()
|
||||
.keep_alive(true)
|
||||
.serve_connection(
|
||||
stream,
|
||||
TokioIo::new(stream),
|
||||
service_fn(|req: hyper::Request<body::Incoming>| {
|
||||
let core = core.clone();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user