From a7ba357cb8268b24c9d68095f70eb88e756fb86f Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Sat, 30 May 2020 19:35:28 +0800 Subject: [PATCH] Fix: hash mark in file name lead to 404 error (#405) --- pkg/filesystem/driver/upyun/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/filesystem/driver/upyun/handler.go b/pkg/filesystem/driver/upyun/handler.go index 796c10c..9b4fc19 100644 --- a/pkg/filesystem/driver/upyun/handler.go +++ b/pkg/filesystem/driver/upyun/handler.go @@ -271,7 +271,7 @@ func (handler Driver) Source( return "", err } - fileKey, err := url.Parse(path) + fileKey, err := url.Parse(url.PathEscape(path)) if err != nil { return "", err }