fix(HTTP Request Node): Add streaming to binary response (#5701)

Revert "fix(HTTP Request Node): Remove streaming response  (#5663)"

This reverts commit 8a21fefbc6.
This commit is contained in:
agobrech 2023-03-21 15:03:47 +01:00 committed by GitHub
parent f7401fb613
commit 199a91b398
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1205,8 +1205,10 @@ export class HttpRequestV3 implements INodeType {
if (autoDetectResponseFormat || responseFormat === 'file') {
requestOptions.encoding = null;
requestOptions.json = false;
requestOptions.useStream = true;
} else if (bodyContentType === 'raw') {
requestOptions.json = false;
requestOptions.useStream = true;
} else {
requestOptions.json = true;
}