|
@@ -2,7 +2,6 @@ package dpcore
|
|
|
|
|
|
import (
|
|
|
"errors"
|
|
|
- "fmt"
|
|
|
"io"
|
|
|
"log"
|
|
|
"net"
|
|
@@ -311,8 +310,6 @@ func (p *ReverseProxy) ProxyHTTP(rw http.ResponseWriter, req *http.Request, rrr
|
|
|
domainWithoutPort = strings.Split(rrr.ProxyDomain, ":")[0]
|
|
|
}
|
|
|
|
|
|
- fmt.Println(rrr.OriginalHost)
|
|
|
-
|
|
|
//Replace the forwarded target with expected Host
|
|
|
locationRewrite = strings.ReplaceAll(locationRewrite, rrr.ProxyDomain, rrr.OriginalHost)
|
|
|
locationRewrite = strings.ReplaceAll(locationRewrite, domainWithoutPort, rrr.OriginalHost)
|