Skip to content

forward User-Agent header to grpc server as x-forwarded-user-agent#760

Merged
qiwzhang merged 1 commit intocloudendpoints:masterfrom
qiwzhang:forward_user_agent
Feb 12, 2020
Merged

forward User-Agent header to grpc server as x-forwarded-user-agent#760
qiwzhang merged 1 commit intocloudendpoints:masterfrom
qiwzhang:forward_user_agent

Conversation

@qiwzhang
Copy link
Copy Markdown
Contributor

Signed-off-by: Wayne Zhang qiwzhang@google.com

ESP is calling grpc client to talk to backend grpc server. The grpc client always append its "user-agent" header and overrides the original user-agent header.

Some applications need to use user-agent header.

In this change, User-agent header is forwarded to the backend as x-forwarded-user-agent.

Signed-off-by: Wayne Zhang <qiwzhang@google.com>
@qiwzhang qiwzhang merged commit 9731128 into cloudendpoints:master Feb 12, 2020
@qiwzhang qiwzhang deleted the forward_user_agent branch February 12, 2020 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants