metaverse / truss

Truss helps you build go-kit microservices without having to worry about writing or maintaining boilerplate code.
Other
737 stars 144 forks source link

unable to get http headers in handler #293

Open icwr opened 4 years ago

icwr commented 4 years ago

Hi, when I send metadata using grpc I am able to get the k/v pairs in my handler. However, when I do the same using http I get nothing. I see the headers getting added to the context as they're provided in the request and in lower-case.

I am using the following code, which always returns false when using http:

md, ok := metadata.FromIncomingContext(ctx); ok

What is the proper way I should be doing this?