From de41b9d034896ae0dbc2d57059c81f827463191a Mon Sep 17 00:00:00 2001 From: epi Date: Wed, 24 Jan 2024 06:48:15 -0500 Subject: [PATCH] fixed issue where --silent included too much info on found dir --- src/response.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/response.rs b/src/response.rs index ae7ddcc6..ba05eacb 100644 --- a/src/response.rs +++ b/src/response.rs @@ -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()