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

auto update script executed

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

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

@@ -312,6 +312,8 @@ func (p *ReverseProxy) ProxyHTTP(rw http.ResponseWriter, req *http.Request, rrr
 		//Trim away the source headers if exists
 		locationRewrite = strings.TrimPrefix(locationRewrite, "http://"+rrr.ProxyDomain)
 		locationRewrite = strings.TrimPrefix(locationRewrite, "http://"+domainWithoutPort)
+		locationRewrite = strings.TrimPrefix(locationRewrite, "https://"+rrr.ProxyDomain)
+		locationRewrite = strings.TrimPrefix(locationRewrite, "https://"+domainWithoutPort)
 
 		//Custom redirection to this rproxy relative path
 		res.Header.Set("Location", locationRewrite)