Files
n8n-enterprise-unlocked/packages/nodes-base/nodes/HttpRequest/V3/utils/parse.ts

10 lines
220 B
TypeScript

export const mimeTypeFromResponse = (
responseContentType: string | undefined,
): string | undefined => {
if (!responseContentType) {
return undefined;
}
return responseContentType.split(' ')[0].split(';')[0];
};