Merge pull request #160 from AndrewBastin/master

Fixed bug where hal+json responses are not rendered properly
This commit is contained in:
Liyas Thomas 2019-09-24 04:38:14 +05:30 committed by GitHub
commit b106126565
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {