fixed issue where --silent included too much info on found dir (#1067)

This commit is contained in:
epi
2024-01-24 06:50:27 -05:00
committed by GitHub
parent a583e2ff38
commit 595665cc04

View File

@@ -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()