bradleyjkemp/grpc-tools

Send requests using proxied user agent

bradleyjkemp opened this issue · 1 comments

The upgrade to grpc-go (#33) broke failed the integration tests because the user agent changed.
This shouldn't happen because grpc-replay should send the user agent from the dump instead of its own default user agent.

I think the same issue will apply to grpc-proxy

Interestingly this isn't currently possible: the "user-agent" header is reserved by the Go gRPC implementation and doesn't let you set it directly (it will always append "grpc-go/<version>" to any string you provide to WithUserAgent).

This is definitely going to break use cases where the server behaves differently based on the user agent but I'm currently not sure how to fix this.