aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/flowtable-columns.jsx.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-09-21 23:43:27 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-09-21 23:43:27 +0200
commit9cda2eb3a3d8da1522a18dc1d0dd6ae5f29f4607 (patch)
treeff20b491654a8b5ac2eaf54fafc1af61c4d5e503 /web/src/js/components/flowtable-columns.jsx.js
parent60cec1f9b6efe17936d721907ea45b2fff482f6b (diff)
downloadmitmproxy-9cda2eb3a3d8da1522a18dc1d0dd6ae5f29f4607.tar.gz
mitmproxy-9cda2eb3a3d8da1522a18dc1d0dd6ae5f29f4607.tar.bz2
mitmproxy-9cda2eb3a3d8da1522a18dc1d0dd6ae5f29f4607.zip
web: various improvements
Diffstat (limited to 'web/src/js/components/flowtable-columns.jsx.js')
-rw-r--r--web/src/js/components/flowtable-columns.jsx.js4
1 files changed, 2 insertions, 2 deletions
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 <td className="col-size">{size}</td>;