From 4475457d4fdae8ec400985ba298f109d307e2da6 Mon Sep 17 00:00:00 2001 From: Fang-Pen Lin Date: Thu, 4 Dec 2025 15:38:16 -0800 Subject: [PATCH] Display body --- frontend/src/hooks/api/pam/types/index.ts | 2 ++ .../pages/pam/PamSessionsByIDPage/components/HttpEventView.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/hooks/api/pam/types/index.ts b/frontend/src/hooks/api/pam/types/index.ts index 56f66c6f1..255aaf834 100644 --- a/frontend/src/hooks/api/pam/types/index.ts +++ b/frontend/src/hooks/api/pam/types/index.ts @@ -51,6 +51,7 @@ export type THttpRequestEvent = { headers: Record; method: string; url: string; + body?: string; }; export type THttpResponseEvent = { @@ -59,6 +60,7 @@ export type THttpResponseEvent = { eventType: "response"; headers: Record; status: string; + body?: string; }; export type THttpEvent = THttpRequestEvent | THttpResponseEvent; diff --git a/frontend/src/pages/pam/PamSessionsByIDPage/components/HttpEventView.tsx b/frontend/src/pages/pam/PamSessionsByIDPage/components/HttpEventView.tsx index fd024e879..3ecd7cf4a 100644 --- a/frontend/src/pages/pam/PamSessionsByIDPage/components/HttpEventView.tsx +++ b/frontend/src/pages/pam/PamSessionsByIDPage/components/HttpEventView.tsx @@ -222,7 +222,7 @@ export const HttpEventView = ({ events }: Props) => { )} - {isRequest && event.body && ( + {event.body && (