Skip to content

Commit

Permalink
fix: remove exclusive condition in directory detection
Browse files Browse the repository at this point in the history
  • Loading branch information
cestef committed May 17, 2024
1 parent f3c7d77 commit ecaae70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runner/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ecaae70

Please sign in to comment.