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
This was working OK using the runtime.DefaultHeaderMatcher when starting the server, but after updating this no longer works.
I went over the google.golang.org/grpc/metadata package and it seems that every key set in the metadata is transformed to lower case, but the runtime.DefaultHeaderMatcher function compares the transformed metadata key with the prefix "Grpc-Metadata-", so it never matches and the header is never returned.
I have been using the following line of code to return HTTP headers in the server response:
This was working OK using the
runtime.DefaultHeaderMatcher
when starting the server, but after updating this no longer works.I went over the
google.golang.org/grpc/metadata
package and it seems that every key set in the metadata is transformed to lower case, but theruntime.DefaultHeaderMatcher
function compares the transformed metadata key with the prefix "Grpc-Metadata-", so it never matches and the header is never returned.I think this broke it.
Am I doing anything wrong? How should I set the metadata so it is returned as an HTTP header?
The text was updated successfully, but these errors were encountered: