|
@@ -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
|