diff --git a/api/utils.go b/api/utils.go index fd09c5f9b7..3eb33d8746 100644 --- a/api/utils.go +++ b/api/utils.go @@ -89,13 +89,6 @@ func copyHeader(dst, src http.Header) { } } -// prevents leak with https -func closeIdleConnections(client *http.Client) { - if tr, ok := client.Transport.(*http.Transport); ok { - tr.CloseIdleConnections() - } -} - func proxyAsync(engine *cluster.Engine, w http.ResponseWriter, r *http.Request, callback func(*http.Response)) error { // RequestURI may not be sent to client r.RequestURI = ""