静态分发增加例外URL、限制URL、排除隐藏文件等选项

This commit is contained in:
GoEdgeLab
2023-08-10 11:27:00 +08:00
parent 24d4721c9c
commit d2e80ef475
2 changed files with 66 additions and 11 deletions

View File

@@ -70,6 +70,12 @@ func TestURLPattern_Match(t *testing.T) {
url: "https://example-test.com/123/hello/world",
result: false,
},
{
patternType: "wildcard",
pattern: "/hidden/*",
url: "/hidden/index.html",
result: false, // because don't have https://HOST in url
},
{
patternType: "regexp",
pattern: ".*",