Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit a5be932

Browse files
committed
Fix response.headerValue
Ensure it is case insensitive
1 parent dc84e2d commit a5be932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ func (r *Response) Frame() *Frame {
460460
// Returns true if the header is present, false otherwise.
461461
func (r *Response) HeaderValue(name string) (string, bool) {
462462
headers := r.AllHeaders()
463-
v, ok := headers[name]
463+
v, ok := headers[strings.ToLower(name)]
464464
return v, ok
465465
}
466466

0 commit comments

Comments
 (0)