From b087325761d35bb6e69f7fc39fa4ba438dc09037 Mon Sep 17 00:00:00 2001 From: hashmap Date: Thu, 1 Nov 2018 16:03:32 +0100 Subject: [PATCH] Don't die on malformed HTTPS request (#1907) Fixes #1906 --- api/src/rest.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/rest.rs b/api/src/rest.rs index 54e7d2446..0de00c7c3 100644 --- a/api/src/rest.rs +++ b/api/src/rest.rs @@ -224,8 +224,8 @@ impl ApiServer { .then(|r| match r { Ok(x) => Ok::<_, io::Error>(Some(x)), Err(e) => { - eprintln!("accept_async failed"); - Err(e) + error!("accept_async failed: {}", e); + Ok(None) } }).filter_map(|x| x); let server = Server::builder(tls)