From 044caf497ce54beeba02bc4728d26d842c36367a Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Mon, 17 May 2021 18:06:25 +0200 Subject: [PATCH] Actually correct handling of HTTP/2 NO_ERROR --- src/ilias.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ilias.rs b/src/ilias.rs index f68ebae..5f08f8b 100644 --- a/src/ilias.rs +++ b/src/ilias.rs @@ -24,6 +24,8 @@ pub struct ILIAS { /// "http2 error: protocol error: not a result of an error" fn error_is_http2(error: &reqwest::Error) -> bool { error.source() // hyper::Error + .map(|x| x.source()) // -> h2::Error + .flatten() .map(|x| x.downcast_ref::()) .flatten() .map(|x| x.reason())