Do not spuriously escape in tx text log

This commit is contained in:
Grahame Grieve 2023-04-27 20:08:54 +10:00
parent 30e8f64962
commit 949c57acbf
1 changed files with 4 additions and 4 deletions

View File

@ -61,11 +61,11 @@ public class TextClientLogger extends BaseLogger implements ToolingClientLogger
file.println("\r\n--- "+id+" -----------------\r\nRequest: \r\n"); file.println("\r\n--- "+id+" -----------------\r\nRequest: \r\n");
file.println(method+" "+url+" HTTP/1.0"); file.println(method+" "+url+" HTTP/1.0");
for (String s : headers) for (String s : headers)
file.println(Utilities.escapeXml(s)); file.println(s);
if (body != null) { if (body != null) {
file.println(""); file.println("");
try { try {
file.println(Utilities.escapeXml(new String(body, "UTF-8"))); file.println(new String(body, "UTF-8"));
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
} }
} }
@ -78,11 +78,11 @@ public class TextClientLogger extends BaseLogger implements ToolingClientLogger
file.println("\r\n\r\nResponse: \r\n"); file.println("\r\n\r\nResponse: \r\n");
file.println(outcome); file.println(outcome);
for (String s : headers) for (String s : headers)
file.println(Utilities.escapeXml(s)); file.println(s);
if (body != null) { if (body != null) {
file.println(""); file.println("");
try { try {
file.println(Utilities.escapeXml(new String(body, "UTF-8"))); file.println(new String(body, "UTF-8"));
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
} }
} }