Compare commits
1 Commits
main
...
preserve-c
Author | SHA1 | Date |
---|---|---|
Melody Horn | 290c2626d1 |
|
@ -11,7 +11,7 @@ repository = "https://tulpa.dev/cadey/maj"
|
|||
|
||||
[dependencies]
|
||||
async-std = { version = "1.6", optional = true }
|
||||
async-tls = { default-features = false, optional = true, version = "0" }
|
||||
async-tls = { default-features = false, optional = true, version = "0", git = "https://github.com/FlorianUekermann/async-tls.git" }
|
||||
async-trait = { version = "0", optional = true }
|
||||
log = "0.4"
|
||||
mime_guess = "2.0"
|
||||
|
|
|
@ -102,10 +102,14 @@ async fn handle_request(
|
|||
Err(RequestParsingError::InvalidScheme(url.scheme().to_string()))?
|
||||
}
|
||||
|
||||
let certs = stream
|
||||
.peer_certificates()
|
||||
.map(|certs| certs.into_iter().map(Certificate).collect());
|
||||
|
||||
let req = Request {
|
||||
url: url,
|
||||
addr: addr,
|
||||
certs: None,
|
||||
certs: certs,
|
||||
};
|
||||
handle(h, req, &mut stream, addr).await;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue