Commit 4fc7ae74 authored by wang's avatar wang

cronet

parent 78d20087
......@@ -157,6 +157,9 @@ func NewClient(forWard ForwardItem, ios bool) (Client, error) {
client := &http.Client{
Transport: t,
CheckRedirect: func(req *http.Request, via []*http.Request) error {
for i, request := range via {
logrus.Infof("检测到跳转 %d %s", i, request.URL.String())
}
return http.ErrUseLastResponse
},
Jar: jar,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment