Merge pull request #1488 from nosqlbench/http-diag-logging-fix

allow http diag=all (and friends) to print application/json content type body
This commit is contained in:
Jonathan Shook 2023-08-29 10:55:24 -05:00 committed by GitHub
commit 56bdd11a5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,6 +233,9 @@ public class HttpConsoleFormats {
if (contentType.toLowerCase().startsWith("text")) {
return true;
}
if (contentType.toLowerCase().startsWith("application/json")) {
return true;
}
return PRINTABLE.contains(contentType.split("/")[0].toLowerCase());
}