From ecaae70cc7e57367bce90cd62ee4b661c7ef0c1a Mon Sep 17 00:00:00 2001 From: cstef Date: Fri, 17 May 2024 13:41:42 +0200 Subject: [PATCH] fix: remove exclusive condition in directory detection --- src/runner/filters.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runner/filters.rs b/src/runner/filters.rs index 7e53d01..3e67f32 100644 --- a/src/runner/filters.rs +++ b/src/runner/filters.rs @@ -411,7 +411,8 @@ pub fn is_directory(response: &reqwest::Response, body: &str) -> bool { return true; } } - } else if response.status().is_redirection() { + } + if response.status().is_redirection() { // status code is 3xx match response.headers().get("Location") { // and has a Location header