|
@@ -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") != "" {
|