Skip to content

Commit 3cceab4

Browse files
author
Daniel Herzog
committed
Added a spdy fix, some styling fixes
1 parent 59179de commit 3cceab4

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

src/network/network_details_templates.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ templates.param_cells = function(name_value)
345345
{
346346
var parts = name_value.replace(/\+/g, " ").split("=");
347347
return [
348-
["td", decodeURIComponent(parts[0])],
349-
["td", decodeURIComponent(parts[1])]
348+
["td", decodeURIComponent(parts[0]), "class", "mono"],
349+
["td", decodeURIComponent(parts[1]), "class", "mono"]
350350
];
351351
};
352352

src/network/network_service.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,8 +1038,10 @@ cls.NetworkLoggerRequestPrototype = function()
10381038
this._update_event_requestheader = function(event)
10391039
{
10401040
this.request_headers = event.headerList;
1041-
// todo: check spdy requests
1042-
this.first_line = event.raw && event.raw.split("\n")[0];
1041+
// Todo: Not sure I should rely on this
1042+
if (event.raw != "SPDY DATA")
1043+
this.first_line = event.raw && event.raw.split("\n")[0];
1044+
10431045
for (var n = 0, header; header = this.request_headers[n]; n++)
10441046
{
10451047
if (header.name.toLowerCase() == "content-type")
@@ -1105,7 +1107,10 @@ cls.NetworkLoggerResponsePrototype = function()
11051107
// At the time of the this event, it's possible that more than the header
11061108
// has been read from the socket already.
11071109
this.response_headers_raw = event.raw.split("\r\n\r\n")[0];
1108-
this.first_line = this.response_headers_raw.split("\n")[0];
1110+
1111+
// Todo: Not sure I should rely on this
1112+
if (this.response_headers_raw != "SPDY DATA")
1113+
this.first_line = this.response_headers_raw.split("\n")[0];
11091114
};
11101115

11111116
this.update_event_responsefinished = function(event)

src/network/network_style.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,5 +574,7 @@ table .network-body
574574
/* work-around CORE-46966: Big pre element breaks layout in a table */
575575
float: left;
576576
margin-right: -10000000px;
577+
/* todo: word-wrap: break-word; won't really work without this, doesn't make sense with smaller content though
577578
width: 100%;
579+
*/
578580
}

0 commit comments

Comments
 (0)