实现基本的反向代理

This commit is contained in:
刘祥超
2020-09-27 15:26:06 +08:00
parent cb85a9bb01
commit fb587ac0de
13 changed files with 522 additions and 60 deletions

View File

@@ -16,7 +16,7 @@ func TestHTTPRequest_RedirectToHTTPS(t *testing.T) {
},
},
}
req.Run()
req.Do()
a.IsBool(req.web.RedirectToHttps.IsOn == false)
}
{
@@ -29,7 +29,7 @@ func TestHTTPRequest_RedirectToHTTPS(t *testing.T) {
},
},
}
req.Run()
req.Do()
a.IsBool(req.web.RedirectToHttps.IsOn == true)
}
}