fix(#227): fixed json formatting issue

This commit is contained in:
Anoop M D 2023-09-28 10:15:54 +05:30
parent f695036721
commit cd3b8a948e

View File

@ -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 });