Skip to content

Commit 8a49ae7

Browse files
committed
simplify
1 parent af0395e commit 8a49ae7

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎autorouter.go‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ func copyResponseHeaders(w http.ResponseWriter, headers http.Header) {
2121
for k, v := range headers {
2222
if !slice.Contains(skipHeaders, k, slice.WithCaseInsensitive()) {
2323
for _, val := range v {
24-
if header.Get(k) == "" {
25-
header.Set(k, val)
26-
} else {
27-
header.Add(k, val)
28-
}
24+
header.Add(k, val)
2925
}
3026
}
3127
}

0 commit comments

Comments
 (0)