feat(Respond to Webhook Node): Move from Binary Buffer to Binary streaming (#5613)

* replace binary buffer with binary streaming

* Add binary assertion and remove duplicate code

* handle streams correctly

* fix binary response in `own` mode

* fix stream response missing headers

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com>
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
Co-authored-by: Marcus <marcus@n8n.io>
This commit is contained in:
agobrech
2023-05-17 10:06:24 +02:00
committed by GitHub
parent 77ac953eaf
commit 8ae2d801d8
3 changed files with 24 additions and 13 deletions

View File

@@ -527,7 +527,7 @@ export interface IHttpRequestOptions {
export type IN8nHttpResponse = IDataObject | Buffer | GenericValue | GenericValue[] | null;
export interface IN8nHttpFullResponse {
body: IN8nHttpResponse;
body: IN8nHttpResponse | Readable;
headers: IDataObject;
statusCode: number;
statusMessage?: string;