Skip to content

Commit

Permalink
Fix forwarding Authorization-Extras header (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
feedmeapples authored Oct 26, 2022
1 parent 84f16e8 commit 8e789f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/headers/headers.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ func WithForwardHeaders(headers []string) api.Middleware {
func(ctx context.Context, req *http.Request) metadata.MD {
md := metadata.MD{}
for _, header := range headers {
if x, ok := c.Request().Header[header]; ok {
md.Append(header, x...)
if x := c.Request().Header.Get(header); x != "" {
md.Append(header, x)
}
}

Expand Down

0 comments on commit 8e789f5

Please sign in to comment.