Remove duplicated code to remove hop headers

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
This commit is contained in:
Lucas Roesler 2019-06-23 20:30:44 +02:00 committed by Alex Ellis
parent c28175c4f6
commit 02ccccbe60

View File

@ -155,10 +155,6 @@ func copyHeaders(destination http.Header, source *http.Header) {
copy(vClone, v)
(destination)[k] = vClone
}
for _, h := range hopHeaders {
destination.Del(h)
}
}
func deleteHeaders(target *http.Header, exclude *[]string) {