HTTP Header:实现请求方法、域名、状态码等限制,实现内容替换功能

This commit is contained in:
刘祥超
2021-12-14 21:26:43 +08:00
parent 12985e1bd9
commit 9171242c37
6 changed files with 280 additions and 103 deletions

View File

@@ -80,6 +80,12 @@ func TestMatchDomain(t *testing.T) {
ok := MatchDomains([]string{"*"}, "example.com")
a.IsTrue(ok)
}
// port
{
ok := MatchDomains([]string{"example.com:8001"}, "example.com:8001")
a.IsTrue(ok)
}
}
func TestIsSpecialDomain(t *testing.T) {