mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-18 07:24:31 +01:00
remove unnecessary transport.Clone
This commit is contained in:
@@ -43,7 +43,6 @@ func ProxyHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
if responseHeaderTimeout > 0 {
|
||||
transport = transport.Clone()
|
||||
transport.ResponseHeaderTimeout = time.Duration(responseHeaderTimeout) * time.Second
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user