diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-01 17:52:39 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-01 17:52:39 +0100 |
commit | 7a17ad45fad40d5eb45c388ef27a57069e14eb60 (patch) | |
tree | 011ac3a273b630b3ed7c83692308a3c9ef941ae1 /devtools | |
parent | 39de4d76d4df8dec343c7af87a7539ec6a1791f9 (diff) | |
download | uxp-7a17ad45fad40d5eb45c388ef27a57069e14eb60.tar.gz |
Show the Status Line (e.g. "HTTP/2.0 200 OK") in raw headers (response)
https://github.com/MoonchildProductions/moebius/pull/323
Diffstat (limited to 'devtools')
-rw-r--r-- | devtools/client/netmonitor/requests-menu-view.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/devtools/client/netmonitor/requests-menu-view.js b/devtools/client/netmonitor/requests-menu-view.js index ea8ec52b18..4ee3071458 100644 --- a/devtools/client/netmonitor/requests-menu-view.js +++ b/devtools/client/netmonitor/requests-menu-view.js @@ -399,9 +399,20 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, { if (rawHeadersHidden) { let selected = this.selectedItem.attachment; let selectedRequestHeaders = selected.requestHeaders.headers; - let selectedResponseHeaders = selected.responseHeaders.headers; + // display Status-Line above other response headers + let selectedStatusLine = selected.httpVersion + + " " + selected.status + + " " + selected.statusText + + "\n"; requestTextarea.value = writeHeaderText(selectedRequestHeaders); - responseTextare.value = writeHeaderText(selectedResponseHeaders); + // sometimes it's empty + if (selected.responseHeaders) { + let selectedResponseHeaders = selected.responseHeaders.headers; + responseTextare.value = selectedStatusLine + + writeHeaderText(selectedResponseHeaders); + } else { + responseTextare.value = selectedStatusLine; + } $("#raw-headers").hidden = false; } else { requestTextarea.value = null; |