Skip to content

Commit

Permalink
fix(123_share): remove authorization header for file listing
Browse files Browse the repository at this point in the history
  • Loading branch information
xrgzs committed Oct 6, 2024
1 parent 406a963 commit bc07c72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/123_share/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc07c72

Please sign in to comment.