mirror of https://github.com/docker/docs.git
Remove closeIdleConnections function.
Signed-off-by: Dong Chen <dongluo.chen@docker.com>
This commit is contained in:
parent
69535f167a
commit
e51566d255
|
@ -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 = ""
|
||||
|
|
Loading…
Reference in New Issue