Parcourir la source

Removed use-agent

Toby Chui il y a 11 mois
Parent
commit
23137298e2
1 fichiers modifiés avec 0 ajouts et 4 suppressions
  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