Преглед на файлове

auto update script executed

Toby Chui преди 2 години
родител
ревизия
4099d8b7b9
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      mod/dynamicproxy/dpcore/dpcore.go

+ 3 - 3
mod/dynamicproxy/dpcore/dpcore.go

@@ -74,13 +74,13 @@ func NewDynamicProxyCore(target *url.URL, prepender string) *ReverseProxy {
 	targetQuery := target.RawQuery
 	director := func(req *http.Request) {
 		req.URL.Scheme = target.Scheme
-		req.URL.Host = target.Host
-		//req.URL.Path = singleJoiningSlash(target.Path, req.URL.Path)
+		//req.URL.Host = target.Host
+		req.URL.Path = singleJoiningSlash(target.Path, req.URL.Path)
 
 		// If Host is empty, the Request.Write method uses
 		// the value of URL.Host.
 		// force use URL.Host
-		req.Host = req.URL.Host
+		//req.Host = req.URL.Host
 		if targetQuery == "" || req.URL.RawQuery == "" {
 			req.URL.RawQuery = targetQuery + req.URL.RawQuery
 		} else {