fix: resolve http non encode attachment filename (#975)

This commit is contained in:
Levi authored and GitHub committed 2025-04-05 22:37:19 +08:00
1 parent 50bc9ab129
commit cd5fd45667
4 files changed
+39 -2

No files matched your search

+10
View File
@@ -47,6 +47,16 @@ func TestFetcher_Resolve(t *testing.T) {
},
},
}, t)
testResolve(test.StartTestCustomServer, "no-encode", &base.Resource{
Size: test.BuildSize,
Range: false,
Files: []*base.FileInfo{
{
Name: "测试.zip",
Size: test.BuildSize,
},
},
}, t)
testResolve(test.StartTestCustomServer, "%E6%B5%8B%E8%AF%95.zip", &base.Resource{
Size: 0,
Range: false,