aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/components')
-rw-r--r--web/src/js/components/ContentView/ContentViews.jsx2
-rw-r--r--web/src/js/components/FlowTable/FlowColumns.jsx10
-rw-r--r--web/src/js/components/Header/OptionMenu.jsx2
3 files changed, 7 insertions, 7 deletions
diff --git a/web/src/js/components/ContentView/ContentViews.jsx b/web/src/js/components/ContentView/ContentViews.jsx
index 387c940a..4da81c8f 100644
--- a/web/src/js/components/ContentView/ContentViews.jsx
+++ b/web/src/js/components/ContentView/ContentViews.jsx
@@ -7,7 +7,7 @@ import { MessageUtils } from '../../flow/utils'
import CodeEditor from './CodeEditor'
-const isImage = /^image\/(png|jpe?g|gif|vnc.microsoft.icon|x-icon)$/i
+const isImage = /^image\/(png|jpe?g|gif|webp|vnc.microsoft.icon|x-icon)$/i
ViewImage.matches = msg => isImage.test(MessageUtils.getContentType(msg))
ViewImage.propTypes = {
flow: PropTypes.object.isRequired,
diff --git a/web/src/js/components/FlowTable/FlowColumns.jsx b/web/src/js/components/FlowTable/FlowColumns.jsx
index 07b54a32..64b8ac82 100644
--- a/web/src/js/components/FlowTable/FlowColumns.jsx
+++ b/web/src/js/components/FlowTable/FlowColumns.jsx
@@ -92,19 +92,19 @@ MethodColumn.headerName = 'Method'
export function StatusColumn({ flow }) {
let color = 'darkred';
- if (flow.response !== null && 100 <= flow.response.status_code && flow.response.status_code < 200) {
+ if (flow.response && 100 <= flow.response.status_code && flow.response.status_code < 200) {
color = 'green'
}
- else if (flow.response !== null && 200 <= flow.response.status_code && flow.response.status_code < 300) {
+ else if (flow.response && 200 <= flow.response.status_code && flow.response.status_code < 300) {
color = 'darkgreen'
}
- else if (flow.response !== null && 300 <= flow.response.status_code && flow.response.status_code < 400) {
+ else if (flow.response && 300 <= flow.response.status_code && flow.response.status_code < 400) {
color = 'lightblue'
}
- else if (flow.response !== null && 400 <= flow.response.status_code && flow.response.status_code < 500) {
+ else if (flow.response && 400 <= flow.response.status_code && flow.response.status_code < 500) {
color = 'lightred'
}
- else if (flow.response !== null && 500 <= flow.response.status_code && flow.response.status_code < 600) {
+ else if (flow.response && 500 <= flow.response.status_code && flow.response.status_code < 600) {
color = 'lightred'
}
diff --git a/web/src/js/components/Header/OptionMenu.jsx b/web/src/js/components/Header/OptionMenu.jsx
index 765129ed..4eb319ec 100644
--- a/web/src/js/components/Header/OptionMenu.jsx
+++ b/web/src/js/components/Header/OptionMenu.jsx
@@ -31,7 +31,7 @@ function OptionMenu({ openOptions }) {
Use host header for display
</SettingsToggle>
<SettingsToggle setting="ssl_insecure">
- Verify server certificates
+ Don't verify server certificates
</SettingsToggle>
</div>
<div className="menu-legend">Quick Options</div>