From 026937fab54de4a840e25e676cd8998030a6778a Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 20 Apr 2020 21:06:42 -0600 Subject: caddyhttp: Fix trailers when recording responses (fixes #3236) --- modules/caddyhttp/caddyhttp.go | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'modules/caddyhttp/caddyhttp.go') diff --git a/modules/caddyhttp/caddyhttp.go b/modules/caddyhttp/caddyhttp.go index 6dbf773..fda7a92 100644 --- a/modules/caddyhttp/caddyhttp.go +++ b/modules/caddyhttp/caddyhttp.go @@ -165,19 +165,6 @@ func (ws WeakString) String() string { return string(ws) } -// CopyHeader copies HTTP headers by completely -// replacing dest with src. (This allows deletions -// to be propagated, assuming src started as a -// consistent copy of dest.) -func CopyHeader(dest, src http.Header) { - for field := range dest { - delete(dest, field) - } - for field, val := range src { - dest[field] = val - } -} - // StatusCodeMatches returns true if a real HTTP status code matches // the configured status code, which may be either a real HTTP status // code or an integer representing a class of codes (e.g. 4 for all -- cgit v1.2.3