Browse Source

Removed use-agent

Toby Chui 11 months ago
parent
commit
23137298e2
1 changed files with 0 additions and 4 deletions
  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