fix(#229): fixed handling of non-JSON/XML content types

This commit is contained in:
Anoop M D 2023-09-30 02:44:30 +05:30
parent 1877dd858e
commit f99918d725

View File

@ -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 '';