From f99918d725bb03902373369aeb0d86a421da9fbf Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Sat, 30 Sep 2023 02:44:30 +0530 Subject: [PATCH] fix(#229): fixed handling of non-JSON/XML content types --- packages/bruno-app/src/utils/common/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/bruno-app/src/utils/common/index.js b/packages/bruno-app/src/utils/common/index.js index 204cae6bf..84725332f 100644 --- a/packages/bruno-app/src/utils/common/index.js +++ b/packages/bruno-app/src/utils/common/index.js @@ -76,6 +76,8 @@ export const getContentType = (headers) => { } else if (typeof contentType[0] == 'string' && /^[\w\-]+\/([\w\-]+\+)?xml/.test(contentType[0])) { return 'application/xml'; } + + return contentType[0]; } } return '';