Browse Source

auto update script executed

Toby Chui 1 year ago
parent
commit
f2a6486f45
1 changed files with 0 additions and 6 deletions
  1. 0 6
      mod/dynamicproxy/dpcore/dpcore.go

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

@@ -344,12 +344,6 @@ func (p *ReverseProxy) ProxyHTTP(rw http.ResponseWriter, req *http.Request, rrr
 		originLocation := res.Header.Get("Location")
 		res.Header.Set("zr-origin-location", originLocation)
 
-		domainWithoutPort := rrr.ProxyDomain
-		if strings.Contains(rrr.ProxyDomain, ":") {
-			//Split the port away
-			domainWithoutPort = strings.Split(rrr.ProxyDomain, ":")[0]
-		}
-
 		if strings.HasPrefix(originLocation, "http://") || strings.HasPrefix(originLocation, "https://") {
 			//Full path
 			//Replace the forwarded target with expected Host