Skip to content

Commit

Permalink
Fix response.headerValue
Browse files Browse the repository at this point in the history
Ensure it is case insensitive
  • Loading branch information
ankur22 committed Jun 7, 2024
1 parent 7a30df7 commit fe5637e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ func (r *Response) Frame() *Frame {
// Returns true if the header is present, false otherwise.
func (r *Response) HeaderValue(name string) (string, bool) {
headers := r.AllHeaders()
v, ok := headers[name]
v, ok := headers[strings.ToLower(name)]
return v, ok
}

Expand Down

0 comments on commit fe5637e

Please sign in to comment.