node不支持ReadableStream
This commit is contained in:
parent
f48e723391
commit
8cb5d5316b
|
|
@ -189,7 +189,7 @@ class SimpleConnector {
|
|||
};
|
||||
}
|
||||
async serializeResult(result, opRecords, headers, body, message) {
|
||||
if (result instanceof stream_1.Stream || result instanceof Buffer || result instanceof ReadableStream) {
|
||||
if (result instanceof stream_1.Stream || result instanceof Buffer) {
|
||||
return {
|
||||
body: result,
|
||||
headers: {
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@ export default class SimpleConnector<ED extends EntityDict & BaseEntityDict, Fro
|
|||
body: any,
|
||||
message?: string
|
||||
): Promise<{ body: any; headers?: Record<string, any> | undefined }> {
|
||||
if (result instanceof Stream || result instanceof Buffer || result instanceof ReadableStream) {
|
||||
if (result instanceof Stream || result instanceof Buffer) {
|
||||
return {
|
||||
body: result,
|
||||
headers: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue