Skip to content

Commit

Permalink
⚡ Improve autodetect response format
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoE105 committed Oct 18, 2022
1 parent 72fdcb0 commit 266f365
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'].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 266f365

Please sign in to comment.