Explorar el Código

Removed use-agent

Toby Chui hace 11 meses
padre
commit
23137298e2
Se han modificado 1 ficheros con 0 adiciones y 4 borrados
  1. 0 4
      mod/dynamicproxy/dpcore/dpcore.go

+ 0 - 4
mod/dynamicproxy/dpcore/dpcore.go

@@ -83,10 +83,6 @@ func NewDynamicProxyCore(target *url.URL, prepender string, dpcOptions *DpcoreOp
 			req.URL.RawQuery = targetQuery + "&" + req.URL.RawQuery
 		}
 
-		if _, ok := req.Header["User-Agent"]; !ok {
-			req.Header.Set("User-Agent", "")
-		}
-
 	}
 
 	//Hack the default transporter to handle more connections