Don't die on malformed HTTPS request (#1907)

Fixes #1906
This commit is contained in:
hashmap 2018-11-01 16:03:32 +01:00 committed by Gary Yu
parent 9d0641c2b8
commit b087325761

View file

@ -224,8 +224,8 @@ impl ApiServer {
.then(|r| match r { .then(|r| match r {
Ok(x) => Ok::<_, io::Error>(Some(x)), Ok(x) => Ok::<_, io::Error>(Some(x)),
Err(e) => { Err(e) => {
eprintln!("accept_async failed"); error!("accept_async failed: {}", e);
Err(e) Ok(None)
} }
}).filter_map(|x| x); }).filter_map(|x| x);
let server = Server::builder(tls) let server = Server::builder(tls)