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:
Michael Lumish 2024-04-03 10:11:45 -07:00 committed by GitHub
commit dac9321e97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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', () => {