Skip to content

Commit

Permalink
fix SendHeader/SetTrailer when using grpc-gateway standalone server (#…
Browse files Browse the repository at this point in the history
…1638)

* add ServerTransportStream in context for local gateway handlers

* regenerate files

* fix lint

* fix bazel test

* fix after review
  • Loading branch information
ghostiam authored Sep 3, 2020
1 parent 0ed1a06 commit a8c09ed
Show file tree
Hide file tree
Showing 17 changed files with 351 additions and 13 deletions.
34 changes: 33 additions & 1 deletion examples/internal/helloworld/helloworld.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions examples/internal/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ func TestEcho(t *testing.T) {
testEchoOneof1(t, 8088, apiPrefix, "application/json")
testEchoOneof2(t, 8088, apiPrefix, "application/json")
testEchoBody(t, 8088, apiPrefix)
// Use SendHeader/SetTrailer without gRPC server https://github.com/grpc-ecosystem/grpc-gateway/issues/517#issuecomment-684625645
testEchoBody(t, 8089, apiPrefix)
})
}
}
Expand Down
Loading

0 comments on commit a8c09ed

Please sign in to comment.