mirror of https://github.com/grpc/grpc-node.git
Merge pull request #2708 from murgatroid99/grpc-js_trailers_only_fix2
grpc-js: Fix check for whether to send a trailers-only response
This commit is contained in:
commit
dac9321e97
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@grpc/grpc-js",
|
||||
"version": "1.10.5",
|
||||
"version": "1.10.6",
|
||||
"description": "gRPC Library for Node - pure JS implementation",
|
||||
"homepage": "https://grpc.io/",
|
||||
"repository": "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",
|
||||
|
|
|
@ -866,7 +866,7 @@ export class BaseServerInterceptingCall
|
|||
status.details
|
||||
);
|
||||
|
||||
if (this.stream.headersSent) {
|
||||
if (this.metadataSent) {
|
||||
if (!this.wantTrailers) {
|
||||
this.wantTrailers = true;
|
||||
this.stream.once('wantTrailers', () => {
|
||||
|
|
Loading…
Reference in New Issue