From 51823b1a96ef9a1131d5da69af9cacd5b1673664 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Mon, 23 Sep 2019 15:54:08 -0400 Subject: [PATCH] Fixed bug where hal+json responses are not rendered properly --- pages/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/index.vue b/pages/index.vue index d16f325b7..c84c538bb 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -494,7 +494,7 @@ responseText.innerText = this.response.body; } else if (responseText && this.response.body != "(waiting to send request)" && this.response.body != "Loading..." && this.response.body != "See JavaScript console (F12) for details.") { - responseText.innerText = this.responseType == 'application/json' ? JSON.stringify(this.response.body, + responseText.innerText = this.responseType == 'application/json' || 'application/hal+json' ? JSON.stringify(this.response.body, null, 2) : this.response.body; hljs.highlightBlock(document.querySelector("div#response-details-wrapper pre code")); } else {