fix: if we have data, set dummy header response, parse data to a uint8array and process as a chunk
This commit is contained in:
parent
3e28aa782a
commit
326d38275d
|
@ -32,7 +32,12 @@ class HyperTransport implements grpc.Transport {
|
|||
return;
|
||||
}
|
||||
|
||||
this.options.onChunk(ret.data);
|
||||
if (ret.data) {
|
||||
this.options.onHeaders(new grpc.Metadata(), 200);
|
||||
ret.data = new Uint8Array(Object.values(ret.data));
|
||||
this.options.onChunk(ret.data);
|
||||
}
|
||||
|
||||
this.options.onEnd();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue