Skip to content

Commit

Permalink
⚡ Make content-type match more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoE105 committed Oct 18, 2022
1 parent 266f365 commit 8f14baf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ export class HttpRequestV3 implements INodeType {
if (responseContentType.includes('application/json')) {
responseFormat = 'json';
response.body = JSON.parse(Buffer.from(response.body).toString());
} else if (['image', 'audio', 'video', 'application/octet-stream'].some((e) => responseContentType.includes(e))) {
} else if (['image/', 'audio/', 'video/', 'application/octet-stream'].some((e) => responseContentType.includes(e))) {
responseFormat = 'file';
} else {
responseFormat = 'text';
Expand Down

0 comments on commit 8f14baf

Please sign in to comment.