mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-07 08:34:15 +01:00
fix(#227): fixed json formatting issue
This commit is contained in:
parent
f695036721
commit
cd3b8a948e
@ -84,7 +84,7 @@ export const getContentType = (headers) => {
|
||||
export const formatResponse = (response) => {
|
||||
let type = getContentType(response.headers);
|
||||
if (type.includes('json')) {
|
||||
return safeStringifyJSON(response.data);
|
||||
return safeStringifyJSON(response.data, true);
|
||||
}
|
||||
if (type.includes('xml')) {
|
||||
return xmlFormat(response.data, { collapseContent: true });
|
||||
|
Loading…
Reference in New Issue
Block a user