mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-28 07:17:04 +02: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];
|
|
};
|