Skip to content

Commit

Permalink
Merge pull request #2708 from murgatroid99/grpc-js_trailers_only_fix2
Browse files Browse the repository at this point in the history
grpc-js: Fix check for whether to send a trailers-only response
  • Loading branch information
murgatroid99 authored Apr 3, 2024
2 parents c3c7cc4 + 0d9a8c1 commit dac9321
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/grpc-js/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/grpc-js/src/server-interceptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit dac9321

Please sign in to comment.