-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow complete override of User-Agent Header on a per-RPC level from grpc client libraries #5874
Comments
I still need the float the idea with others. It'll require a gRFC if we choose to do it. |
fyi, our current hacky workaround is to have a pair of client/server interceptors that use an interim header key to replace the |
Any updated on this? |
@sudo-nan0-RaySK, |
@ejona86 I am aware about both the issue at hand and prior discussion about supporting content sub-type. However the reason I mentioned it here was that ideally |
@sudo-nan0-RaySK, open a separate issue. That can be discussed there, and it can reference this. |
Please answer these questions before submitting your issue.
What version of gRPC are you using?
1.20.0
What did you expect to see?
tl;dr
This is a followup from a discussion that was initiated on gitter grpc/grpc channel.
Currently, the grpc/java library reuses the User-Agent from the channel for each RPC
and discards User-Agent by treating it as a reserved header.
However, User-Agent is not a reserved header and this creates complications
when trying to write a proxy-like gRPC service for HTTP endpoints that care
about User-Agent for response customization.
Posting it here to get more ideas about how to resolve this.
quoting the conversation below:
The text was updated successfully, but these errors were encountered: