diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/server/tester/RestfulTesterServlet.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/server/tester/RestfulTesterServlet.java index 655c69e119f..bf68879ff17 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/server/tester/RestfulTesterServlet.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/server/tester/RestfulTesterServlet.java @@ -493,7 +493,9 @@ public class RestfulTesterServlet extends HttpServlet { requestBody = StringEscapeUtils.escapeHtml4(requestBody); theContext.setVariable("requestBody", requestBody); theContext.setVariable("requestSyntaxHighlighterClass", requestSyntaxHighlighterClass); - theContext.setVariable("resultBody", StringEscapeUtils.escapeHtml4(resultBody)); + String resultBodyText = StringEscapeUtils.escapeHtml4(resultBody); + theContext.setVariable("resultBody", resultBodyText); + theContext.setVariable("resultBodyIsLong", resultBodyText.length() > 1000); theContext.setVariable("resultSyntaxHighlighterClass", resultSyntaxHighlighterClass); theContext.setVariable("requestHeaders", requestHeaders); theContext.setVariable("responseHeaders", responseHeaders); diff --git a/hapi-fhir-base/src/main/resources/ca/uhn/fhir/rest/server/tester/RestfulTester.html b/hapi-fhir-base/src/main/resources/ca/uhn/fhir/rest/server/tester/RestfulTester.html index 37d880c4ef1..3ad497bcde2 100644 --- a/hapi-fhir-base/src/main/resources/ca/uhn/fhir/rest/server/tester/RestfulTester.html +++ b/hapi-fhir-base/src/main/resources/ca/uhn/fhir/rest/server/tester/RestfulTester.html @@ -927,13 +927,25 @@
...loading...-