Remove closeIdleConnections function.

Signed-off-by: Dong Chen <dongluo.chen@docker.com>
This commit is contained in:
Dong Chen 2016-02-19 14:45:15 -08:00
parent 69535f167a
commit e51566d255
1 changed files with 0 additions and 7 deletions

View File

@ -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 = ""