From bc07c72689aa67c178c2d84c1287ecde29c9db28 Mon Sep 17 00:00:00 2001 From: xrgzs Date: Mon, 7 Oct 2024 02:10:38 +0800 Subject: [PATCH] fix(123_share): remove authorization header for file listing --- drivers/123_share/util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/123_share/util.go b/drivers/123_share/util.go index a7e3e5045be4..dc877072da71 100644 --- a/drivers/123_share/util.go +++ b/drivers/123_share/util.go @@ -139,6 +139,7 @@ func (d *Pan123Share) getFiles(ctx context.Context, parentId string) ([]File, er } _, err := d.request(FileList, http.MethodGet, func(req *resty.Request) { req.SetQueryParams(query) + req.Header.Del("authorization") }, &resp) if err != nil { return nil, err