-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
forwarding binary metadata is broken #218
Comments
I know this is super old but yes base64 encoding seems like a fine path. |
I have been fiddling with this myself. There is no easy way to send bytes in a header value with curl (for example) over HTTP/1.1. Normally this would be base64 encoded, which is what happens in HTTP/2 transport implicitly. For example, let's consider an HTTP/1.1 header called gRPC HTTP/2 transport layer will base64 encode header (named with So here is the catch, if you simply do I think, that grpc-gateway should be a little smarter when it comes to headers names with Thoughts? |
gRPC can handle binary metadata with
-bin
suffix key. The value is encoded to base64 before sending metadata and decoded by receiver implicitly. grpc-gateway now forwards all metadata values as is. Non-ASCII values are dropped as a result.Is there a right way to handle binary header value in HTTP/1.1? Or how about just encoding binary metadata to base64? Once determined I will fix the code with pleasure :)
The text was updated successfully, but these errors were encountered: