diff --git a/web/src/js/__tests__/components/FlowTable/__snapshots__/FlowColumnsSpec.tsx.snap b/web/src/js/__tests__/components/FlowTable/__snapshots__/FlowColumnsSpec.tsx.snap index 923d67e12..9f5443619 100644 --- a/web/src/js/__tests__/components/FlowTable/__snapshots__/FlowColumnsSpec.tsx.snap +++ b/web/src/js/__tests__/components/FlowTable/__snapshots__/FlowColumnsSpec.tsx.snap @@ -177,7 +177,7 @@ exports[`should render columns: method 1`] = ` - GET + WSS diff --git a/web/src/js/__tests__/components/FlowTable/__snapshots__/FlowRowSpec.tsx.snap b/web/src/js/__tests__/components/FlowTable/__snapshots__/FlowRowSpec.tsx.snap index e42d25fa1..323d075f5 100644 --- a/web/src/js/__tests__/components/FlowTable/__snapshots__/FlowRowSpec.tsx.snap +++ b/web/src/js/__tests__/components/FlowTable/__snapshots__/FlowRowSpec.tsx.snap @@ -34,7 +34,7 @@ exports[`FlowRow 1`] = ` - GET + WSS mainPath(flow) export const method: FlowColumn = ({flow}) => { + let method; + if(flow.type === "http") { + if(flow.websocket) { + method = flow.client_conn.tls_established ? "WSS" : "WS"; + } else { + method = flow.request.method; + } + } else { + method = flow.type.toUpperCase(); + } return ( - {flow.type === "http" ? flow.request.method : flow.type.toUpperCase()} + {method} ) }; method.headerName = 'Method'