mwitkow / grpc-proxy

gRPC proxy is a Go reverse proxy that allows for rich routing of gRPC calls with minimum overhead.
Apache License 2.0
962 stars 210 forks source link

Fix propagation of headers with grpc server errors #41

Closed technicianted closed 5 years ago

technicianted commented 5 years ago

Current implementation does not propagate headers if grpc error is returned.

This PR fixes ordering of header forwarding in handler.go such that it carries headers even if there was an error.

Relevant unit tests added for unary and streaming calls.