Skip to content

Commit

Permalink
fixed issue where --silent included too much info on found dir
Browse files Browse the repository at this point in the history
  • Loading branch information
epi052 committed Jan 24, 2024
1 parent 539851e commit de41b9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,12 @@ impl FeroxSerialize for FeroxResponse {
let mut url_with_redirect = match (
self.status().is_redirection(),
self.headers().get("Location").is_some(),
matches!(
self.output_level,
OutputLevel::Silent | OutputLevel::SilentJSON
),
) {
(true, true) => {
(true, true, false) => {
// redirect with Location header, show where it goes if possible
let loc = self
.headers()
Expand Down

0 comments on commit de41b9d

Please sign in to comment.