remove unnecessary transport.Clone

This commit is contained in:
yusing 2025-02-13 17:14:57 +08:00
parent c2ff497cc9
commit afcd37dac6

View file

@ -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
} }