From eec52a0b163257ca8d41c83b72ed94c4006de2d1 Mon Sep 17 00:00:00 2001 From: alingse Date: Fri, 30 May 2025 13:20:00 +0800 Subject: [PATCH] Update apitest.go use normalizedName replace function call --- apitest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apitest.go b/apitest.go index 777cf03..af7fad2 100644 --- a/apitest.go +++ b/apitest.go @@ -675,7 +675,7 @@ func (r *Response) HeaderNotPresent(name string) *Response { func (r *Response) Headers(headers map[string]string) *Response { for name, value := range headers { normalizedName := textproto.CanonicalMIMEHeaderKey(name) - r.headers[normalizedName] = append(r.headers[textproto.CanonicalMIMEHeaderKey(normalizedName)], value) + r.headers[normalizedName] = append(r.headers[normalizedName], value) } return r }