mirror of
https://github.com/FliegendeWurst/KIT-ILIAS-downloader.git
synced 2024-08-28 04:04:18 +00:00
Actually correct handling of HTTP/2 NO_ERROR
This commit is contained in:
parent
8a1a5f6165
commit
044caf497c
@ -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::<h2::Error>())
|
||||
.flatten()
|
||||
.map(|x| x.reason())
|
||||
|
Loading…
Reference in New Issue
Block a user