From 5732f6c14618f50ffaf315b93795340219a67c66 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Thu, 24 Sep 2026 23:57:07 +0200 Subject: Only display status text when available Since the web interface will often contact the server over HTTP/2 in "production", the Response.statusText property will often not be available. --- web/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { let rows = [ [txt("HTTP-statuscode"), el("a", { "href": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/" + rsp.status }, - txt(rsp.status + " (" + rsp.statusText + ")"))], + txt(rsp.status + (rsp.statusText ? " (" + rsp.statusText + ")" : "")))], [txt("Probleemtype"), el("code", {}, txt(problem.type))], [txt("Trace-ID"), -- cgit v1.3