You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
Esardes
changed the title
When linkerd proxy creates the response to a grpc request, it should add the hear "content-type: application/grpc"
When linkerd proxy creates the response to a grpc request, it should add the header "content-type: application/grpc"
Nov 23, 2020
hawkw
added a commit
to linkerd/linkerd2-proxy
that referenced
this issue
Nov 23, 2020
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.
Fixeslinkerd/linkerd2#5273
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.
Fixeslinkerd/linkerd2#5273
Bug Report
What is the issue?
When linkerd proxy creates the response to a grpc request, it does so without specifying the content-type (leading to clients being unhappy)
Possible solution
Add it when creating the answer(s) in the following file
https://github.com/linkerd/linkerd2-proxy/blob/main/linkerd/app/core/src/errors.rs#L205
The text was updated successfully, but these errors were encountered: