Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js |
| index 1cd8eadd508411fbc30eae829d55b32ea68cdd6d..83ad41075e7ed40d78cb6622b4c0ea33885d6e0f 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js |
| @@ -859,10 +859,15 @@ WebInspector.NetworkRequest.prototype = { |
| function parseNameValue(pair) |
| { |
| var position = pair.indexOf("="); |
| - if (position === -1) |
| + if (position === -1) { |
| + if (pair === "") { |
| + return {name: "(empty)", value: "(empty)"}; |
|
caseq
2016/04/06 18:36:43
I'd rather say we could skip these, but if the con
|
| + } |
| return {name: pair, value: ""}; |
| - else |
| + } |
| + else { |
| return {name: pair.substring(0, position), value: pair.substring(position + 1)}; |
| + } |
| } |
| return queryString.split("&").map(parseNameValue); |
| }, |