Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
errors: Set
content-type
for synthesized grpc errors (#750)
The proxy will synthesize responses for some error conditions. Currently, there's special logic for synthesizing errors for gRPC requests: we emit `grpc-status` and `grpc-message` trailers rather than HTTP status codes for gRPC requests. However, we *don't* currently set a `content-type` header for gRPC error responses. This makes some clients angry. This commit adds a `content-type: application/grpc` header to synthesized error responses for gRPC requests. Fixes linkerd/linkerd2#5273
- Loading branch information