From 9cda2eb3a3d8da1522a18dc1d0dd6ae5f29f4607 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 21 Sep 2014 23:43:27 +0200 Subject: web: various improvements --- web/src/js/components/flowtable-columns.jsx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/src/js/components/flowtable-columns.jsx.js') diff --git a/web/src/js/components/flowtable-columns.jsx.js b/web/src/js/components/flowtable-columns.jsx.js index ec63b03f..88e0cf22 100644 --- a/web/src/js/components/flowtable-columns.jsx.js +++ b/web/src/js/components/flowtable-columns.jsx.js @@ -34,7 +34,6 @@ var IconColumn = React.createClass({ var contentType = ResponseUtils.getContentType(flow.response); //TODO: We should assign a type to the flow somewhere else. - var icon; if(flow.response.code == 304) { icon = "resource-icon-not-modified"; } else if(300 <= flow.response.code && flow.response.code < 400) { @@ -112,9 +111,10 @@ var SizeColumn = React.createClass({ }, render: function(){ var flow = this.props.flow; + var total = flow.request.contentLength; if(flow.response){ - total += flow.response.contentLength; + total += flow.response.contentLength || 0; } var size = formatSize(total); return {size}; -- cgit v1.2.3