mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-26 09:53:50 +01:00
fix(#229): fixed handling of non-JSON/XML content types
This commit is contained in:
parent
1877dd858e
commit
f99918d725
@ -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 '';
|
||||
|
Loading…
Reference in New Issue
Block a user