mirror of
https://github.com/yusing/godoxy.git
synced 2025-06-09 13:02:33 +02:00
remove unnecessary transport.Clone
This commit is contained in:
parent
c2ff497cc9
commit
afcd37dac6
1 changed files with 0 additions and 1 deletions
|
@ -43,7 +43,6 @@ func ProxyHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if responseHeaderTimeout > 0 {
|
if responseHeaderTimeout > 0 {
|
||||||
transport = transport.Clone()
|
|
||||||
transport.ResponseHeaderTimeout = time.Duration(responseHeaderTimeout) * time.Second
|
transport.ResponseHeaderTimeout = time.Duration(responseHeaderTimeout) * time.Second
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue