forked from extern/bruno
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) => {
|
export const formatResponse = (response) => {
|
||||||
let type = getContentType(response.headers);
|
let type = getContentType(response.headers);
|
||||||
if (type.includes('json')) {
|
if (type.includes('json')) {
|
||||||
return safeStringifyJSON(response.data);
|
return safeStringifyJSON(response.data, true);
|
||||||
}
|
}
|
||||||
if (type.includes('xml')) {
|
if (type.includes('xml')) {
|
||||||
return xmlFormat(response.data, { collapseContent: true });
|
return xmlFormat(response.data, { collapseContent: true });
|
||||||
|
Loading…
Reference in New Issue
Block a user