diff options
Diffstat (limited to 'net/src')
-rw-r--r-- | net/src/wkd.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/src/wkd.rs b/net/src/wkd.rs index 7a81831e..d2b6b4b9 100644 --- a/net/src/wkd.rs +++ b/net/src/wkd.rs @@ -211,8 +211,7 @@ where if let Ok(ref resp) = response { if resp.status().is_redirection() { let url = resp.headers().get("Location") - .map(|value| value.to_str().ok()) - .flatten() + .and_then(|value| value.to_str().ok()) .map(|value| value.parse::<Uri>()); if let Some(Ok(url)) = url { return get_following_redirects(client, url, depth - 1).await; |