summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRutger Broekhoff2026-09-24 23:57:07 +0200
committerRutger Broekhoff2026-09-24 23:57:07 +0200
commit5732f6c14618f50ffaf315b93795340219a67c66 (patch)
tree8c067314339bcfd3762eca3bd9e0b16a1c883256
parent8eeadaee1541fe358bb02d51ac1f16dc63aee1cb (diff)
downloadroutemon-5732f6c14618f50ffaf315b93795340219a67c66.tar.gz
routemon-5732f6c14618f50ffaf315b93795340219a67c66.zip
Only display status text when availableHEADmain
Since the web interface will often contact the server over HTTP/2 in "production", the Response.statusText property will often not be available.
-rw-r--r--web/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/index.js b/web/index.js
index 63292aa..ba2777d 100644
--- a/web/index.js
+++ b/web/index.js
@@ -128,7 +128,7 @@ async function showProblem(rsp) {
128 let rows = [ 128 let rows = [
129 [txt("HTTP-statuscode"), 129 [txt("HTTP-statuscode"),
130 el("a", { "href": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/" + rsp.status }, 130 el("a", { "href": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/" + rsp.status },
131 txt(rsp.status + " (" + rsp.statusText + ")"))], 131 txt(rsp.status + (rsp.statusText ? " (" + rsp.statusText + ")" : "")))],
132 [txt("Probleemtype"), 132 [txt("Probleemtype"),
133 el("code", {}, txt(problem.type))], 133 el("code", {}, txt(problem.type))],
134 [txt("Trace-ID"), 134 [txt("Trace-ID"),