From 949c57acbf7116eb2a096c98f17626292abc8a3d Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 27 Apr 2023 20:08:54 +1000 Subject: [PATCH] Do not spuriously escape in tx text log --- .../java/org/hl7/fhir/r5/context/TextClientLogger.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/TextClientLogger.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/TextClientLogger.java index ce2e400d4..c3450f72b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/TextClientLogger.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/TextClientLogger.java @@ -61,11 +61,11 @@ public class TextClientLogger extends BaseLogger implements ToolingClientLogger file.println("\r\n--- "+id+" -----------------\r\nRequest: \r\n"); file.println(method+" "+url+" HTTP/1.0"); for (String s : headers) - file.println(Utilities.escapeXml(s)); + file.println(s); if (body != null) { file.println(""); try { - file.println(Utilities.escapeXml(new String(body, "UTF-8"))); + file.println(new String(body, "UTF-8")); } catch (UnsupportedEncodingException e) { } } @@ -78,11 +78,11 @@ public class TextClientLogger extends BaseLogger implements ToolingClientLogger file.println("\r\n\r\nResponse: \r\n"); file.println(outcome); for (String s : headers) - file.println(Utilities.escapeXml(s)); + file.println(s); if (body != null) { file.println(""); try { - file.println(Utilities.escapeXml(new String(body, "UTF-8"))); + file.println(new String(body, "UTF-8")); } catch (UnsupportedEncodingException e) { } }