Skip to content

Commit

Permalink
fix(Google Drive Node): Use the correct mimetype on converted downloa…
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Jan 24, 2023
1 parent 0d33329 commit 58d0890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2297,7 +2297,7 @@ export class GoogleDrive implements INodeType {
);
}

const mimeType = file.mimeType ?? response.headers['content-type'] ?? undefined;
const mimeType = response.headers['content-type'] ?? file.mimeType ?? undefined;
const fileName = downloadOptions.fileName ?? file.name ?? undefined;

const newItem: INodeExecutionData = {
Expand Down

0 comments on commit 58d0890

Please sign in to comment.