* [pbs-devel] [PATCH proxmox] proxmox-rest-server: do not use formatter for AuthErr
@ 2023-11-27 10:17 Dietmar Maurer
2023-11-28 10:36 ` [pbs-devel] applied: " Wolfgang Bumiller
0 siblings, 1 reply; 2+ messages in thread
From: Dietmar Maurer @ 2023-11-27 10:17 UTC (permalink / raw)
To: pbs-devel
We want to get a 401 error at HTTP level.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
---
proxmox-rest-server/src/rest.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxmox-rest-server/src/rest.rs b/proxmox-rest-server/src/rest.rs
index 2ccd4d5..e81be44 100644
--- a/proxmox-rest-server/src/rest.rs
+++ b/proxmox-rest-server/src/rest.rs
@@ -923,7 +923,7 @@ impl Formatted {
// always delay unauthorized calls by 3 seconds (from start of request)
let err = http_err!(UNAUTHORIZED, "authentication failed - {}", err);
tokio::time::sleep_until(Instant::from_std(delay_unauth_time())).await;
- return Ok(formatter.format_error(err));
+ return Err(err);
}
}
}
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-28 10:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-27 10:17 [pbs-devel] [PATCH proxmox] proxmox-rest-server: do not use formatter for AuthErr Dietmar Maurer
2023-11-28 10:36 ` [pbs-devel] applied: " Wolfgang Bumiller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox