Skip to content

Commit dac9321

Browse files
authored
Merge pull request #2708 from murgatroid99/grpc-js_trailers_only_fix2
grpc-js: Fix check for whether to send a trailers-only response
2 parents c3c7cc4 + 0d9a8c1 commit dac9321

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/grpc-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@grpc/grpc-js",
3-
"version": "1.10.5",
3+
"version": "1.10.6",
44
"description": "gRPC Library for Node - pure JS implementation",
55
"homepage": "https://grpc.io/",
66
"repository": "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",

packages/grpc-js/src/server-interceptors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ export class BaseServerInterceptingCall
866866
status.details
867867
);
868868

869-
if (this.stream.headersSent) {
869+
if (this.metadataSent) {
870870
if (!this.wantTrailers) {
871871
this.wantTrailers = true;
872872
this.stream.once('wantTrailers', () => {

0 commit comments

Comments
 (0)