* [pbs-devel] [PATCH proxmox] auth-api: set content type header for the new HttpOnly ticket endpoint
@ 2025-03-13 9:50 Shannon Sterz
2025-03-14 8:29 ` [pbs-devel] applied: " Wolfgang Bumiller
0 siblings, 1 reply; 2+ messages in thread
From: Shannon Sterz @ 2025-03-13 9:50 UTC (permalink / raw)
To: pbs-devel
otherwise some clients might struggle to interpret the body correctly
Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
---
proxmox-auth-api/src/api/access.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/proxmox-auth-api/src/api/access.rs b/proxmox-auth-api/src/api/access.rs
index 6dcda375..396935f5 100644
--- a/proxmox-auth-api/src/api/access.rs
+++ b/proxmox-auth-api/src/api/access.rs
@@ -140,7 +140,8 @@ fn create_ticket_http_only(
.ok_or(format_err!("detected wrong RpcEnvironment type"))?;
let mut ticket_response = handle_ticket_creation(create_params, env).await?;
- let mut response = Response::builder();
+ let mut response =
+ Response::builder().header(http::header::CONTENT_TYPE, "application/json");
// if `ticket_info` is set, we want to return the ticket in a `SET_COOKIE` header and not
// the response body
--
2.39.5
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pbs-devel] applied: [PATCH proxmox] auth-api: set content type header for the new HttpOnly ticket endpoint
2025-03-13 9:50 [pbs-devel] [PATCH proxmox] auth-api: set content type header for the new HttpOnly ticket endpoint Shannon Sterz
@ 2025-03-14 8:29 ` Wolfgang Bumiller
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Bumiller @ 2025-03-14 8:29 UTC (permalink / raw)
To: Shannon Sterz; +Cc: pbs-devel
applied, thanks
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-14 8:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-13 9:50 [pbs-devel] [PATCH proxmox] auth-api: set content type header for the new HttpOnly ticket endpoint Shannon Sterz
2025-03-14 8:29 ` [pbs-devel] applied: " Wolfgang Bumiller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal