mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
10 lines
220 B
TypeScript
10 lines
220 B
TypeScript
export const mimeTypeFromResponse = (
|
|
responseContentType: string | undefined,
|
|
): string | undefined => {
|
|
if (!responseContentType) {
|
|
return undefined;
|
|
}
|
|
|
|
return responseContentType.split(' ')[0].split(';')[0];
|
|
};
|