summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/caddyhttp.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-04-20 21:06:42 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-04-22 11:10:13 -0600
commit026937fab54de4a840e25e676cd8998030a6778a (patch)
tree37d98cd37260b6e4caf1adea8bf1c991019e942d /modules/caddyhttp/caddyhttp.go
parent295604d6df2a51ec930f10286a4e293cc8f4a226 (diff)
caddyhttp: Fix trailers when recording responses (fixes #3236)
Diffstat (limited to 'modules/caddyhttp/caddyhttp.go')
-rw-r--r--modules/caddyhttp/caddyhttp.go13
1 files changed, 0 insertions, 13 deletions
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