mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
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:
commit
56bdd11a5e
@ -233,6 +233,9 @@ public class HttpConsoleFormats {
|
|||||||
if (contentType.toLowerCase().startsWith("text")) {
|
if (contentType.toLowerCase().startsWith("text")) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (contentType.toLowerCase().startsWith("application/json")) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return PRINTABLE.contains(contentType.split("/")[0].toLowerCase());
|
return PRINTABLE.contains(contentType.split("/")[0].toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user