mirror of
https://github.com/gospider007/requests.git
synced 2025-12-24 13:57:52 +08:00
sync
This commit is contained in:
@@ -10,9 +10,7 @@ import (
|
||||
)
|
||||
|
||||
func TestProxy2(t *testing.T) {
|
||||
proCliPre, err := proxy.NewClient(nil, proxy.ClientOption{
|
||||
DisVerify: true,
|
||||
})
|
||||
proCliPre, err := proxy.NewClient(nil, proxy.ClientOption{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -20,9 +18,7 @@ func TestProxy2(t *testing.T) {
|
||||
go proCliPre.Run()
|
||||
proIp := "http://" + proCliPre.Addr()
|
||||
|
||||
proCli, err := proxy.NewClient(nil, proxy.ClientOption{
|
||||
DisVerify: true,
|
||||
})
|
||||
proCli, err := proxy.NewClient(nil, proxy.ClientOption{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
@@ -101,9 +101,8 @@ func server() {
|
||||
}
|
||||
func proxyServer(addr string) {
|
||||
c, err := proxy.NewClient(nil, proxy.ClientOption{
|
||||
Addr: addr,
|
||||
Debug: true,
|
||||
DisVerify: true,
|
||||
Addr: addr,
|
||||
Debug: true,
|
||||
})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user