File tree Expand file tree Collapse file tree
__tests__/components/FlowTable/__snapshots__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ exports[`should render columns: method 1`] = `
177177 <td
178178 class = " col-method"
179179 >
180- GET
180+ WSS
181181 </td >
182182 </tr >
183183 </tbody >
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ exports[`FlowRow 1`] = `
3434 <td
3535 class = " col-method"
3636 >
37- GET
37+ WSS
3838 </td >
3939 <td
4040 class = " col-status"
Original file line number Diff line number Diff line change @@ -107,8 +107,18 @@ path.headerName = 'Path'
107107path . sortKey = flow => mainPath ( flow )
108108
109109export const method : FlowColumn = ( { flow} ) => {
110+ let method ;
111+ if ( flow . type === "http" ) {
112+ if ( flow . websocket ) {
113+ method = flow . client_conn . tls_established ? "WSS" : "WS" ;
114+ } else {
115+ method = flow . request . method ;
116+ }
117+ } else {
118+ method = flow . type . toUpperCase ( ) ;
119+ }
110120 return (
111- < td className = "col-method" > { flow . type === "http" ? flow . request . method : flow . type . toUpperCase ( ) } </ td >
121+ < td className = "col-method" > { method } </ td >
112122 )
113123} ;
114124method . headerName = 'Method'
You can’t perform that action at this time.
0 commit comments