Ver Fonte

Commented out debug printout

TC pushbot 5 há 1 ano atrás
pai
commit
1118ae80f2
1 ficheiros alterados com 5 adições e 6 exclusões
  1. 5 6
      mod/dynamicproxy/dpcore/dpcore.go

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

@@ -2,7 +2,6 @@ package dpcore
 
 import (
 	"errors"
-	"fmt"
 	"io"
 	"log"
 	"net"
@@ -374,11 +373,11 @@ func (p *ReverseProxy) ProxyHTTP(rw http.ResponseWriter, req *http.Request, rrr
 		}
 	}
 
-	if res.StatusCode == 501 || res.StatusCode == 500 {
-		fmt.Println(outreq.Proto, outreq.RemoteAddr, outreq.RequestURI)
-		fmt.Println(">>>", outreq.Method, res.Header, res.ContentLength, res.StatusCode)
-		fmt.Println(outreq.Header, req.Host)
-	}
+	//if res.StatusCode == 501 || res.StatusCode == 500 {
+	//	fmt.Println(outreq.Proto, outreq.RemoteAddr, outreq.RequestURI)
+	//	fmt.Println(">>>", outreq.Method, res.Header, res.ContentLength, res.StatusCode)
+	//	fmt.Println(outreq.Header, req.Host)
+	//}
 
 	//Custom header rewriter functions
 	if res.Header.Get("Location") != "" {