Skip to content

Commit

Permalink
Code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
seborama committed Nov 13, 2018
1 parent 6d75736 commit 326cba2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions govcr.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,7 @@ func cloneHeader(h http.Header) http.Header {

copied := make(http.Header, len(h))
for k, v := range h {
vCopy := make([]string, len(v))
copy(vCopy, v)
copied[k] = vCopy
copied[k] = append([]string{}, v...)
}
return copied
}
Expand Down

0 comments on commit 326cba2

Please sign in to comment.