mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-10 01:20:26 +08:00
静态分发增加例外URL、限制URL、排除隐藏文件等选项
This commit is contained in:
@@ -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: ".*",
|
||||
|
||||
Reference in New Issue
Block a user