diff options
author | Matthew Holt <[email protected]> | 2020-04-20 21:06:42 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2020-04-22 11:10:13 -0600 |
commit | 026937fab54de4a840e25e676cd8998030a6778a (patch) | |
tree | 37d98cd37260b6e4caf1adea8bf1c991019e942d /modules/caddyhttp/caddyhttp.go | |
parent | 295604d6df2a51ec930f10286a4e293cc8f4a226 (diff) | |
download | caddy-026937fab54de4a840e25e676cd8998030a6778a.tar.gz caddy-026937fab54de4a840e25e676cd8998030a6778a.zip |
caddyhttp: Fix trailers when recording responses (fixes #3236)
Diffstat (limited to 'modules/caddyhttp/caddyhttp.go')
-rw-r--r-- | modules/caddyhttp/caddyhttp.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/modules/caddyhttp/caddyhttp.go b/modules/caddyhttp/caddyhttp.go index 6dbf7738d..fda7a929f 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 |