소스 검색

auto update script executed

Toby Chui 2 년 전
부모
커밋
0cd79f150c
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      mod/dynamicproxy/dpcore/dpcore.go

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

@@ -301,7 +301,9 @@ func (p *ReverseProxy) ProxyHTTP(rw http.ResponseWriter, req *http.Request, rrr
 
 	//Custom header rewriter functions
 	if res.Header.Get("Location") != "" {
-		fmt.Println(">>>", req, res)
+		fmt.Println(">>> REQ", req)
+		fmt.Println(">>> OUTR", outreq)
+		fmt.Println(">>> RESP", res)
 		locationRewrite := res.Header.Get("Location")
 		originLocation := res.Header.Get("Location")
 		res.Header.Set("zr-origin-location", originLocation)