From 46743f3c1e2b597a4476c2f82796695cd0ccb452 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Tue, 7 Apr 2020 10:15:11 +0800 Subject: [PATCH] Fix: unsupported GET parameters in public OSS bucket --- pkg/filesystem/driver/oss/handler.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/filesystem/driver/oss/handler.go b/pkg/filesystem/driver/oss/handler.go index 80a85af..7423596 100644 --- a/pkg/filesystem/driver/oss/handler.go +++ b/pkg/filesystem/driver/oss/handler.go @@ -279,11 +279,13 @@ func (handler Driver) signSourceURL(ctx context.Context, path string, ttl int64, // 优先使用https finalURL.Scheme = "https" - // 公有空间替换掉Key + // 公有空间替换掉Key及不支持的头 if !handler.Policy.IsPrivate { query := finalURL.Query() query.Del("OSSAccessKeyId") query.Del("Signature") + query.Del("response-content-disposition") + query.Del("x-oss-traffic-limit") finalURL.RawQuery = query.Encode() }