mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(HTTP Request Node): Process text files (#16226)
This commit is contained in:
9
packages/nodes-base/nodes/HttpRequest/V3/utils/parse.ts
Normal file
9
packages/nodes-base/nodes/HttpRequest/V3/utils/parse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export const mimeTypeFromResponse = (
|
||||
responseContentType: string | undefined,
|
||||
): string | undefined => {
|
||||
if (!responseContentType) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return responseContentType.split(' ')[0].split(';')[0];
|
||||
};
|
||||
Reference in New Issue
Block a user