Skip to content

Commit

Permalink
fix(alist_v3): correct typo in SetHeaders method call
Browse files Browse the repository at this point in the history
A typo was corrected in the driver.go file where SetHeader was mistakenly
used instead of the correct SetHeaders method call. This ensures that the
headers are properly set on the HTTP request within the Link function.
  • Loading branch information
xrgzs committed Jun 26, 2024
1 parent d9eaff3 commit 55c61aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/alist_v3/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (d *AListV3) Link(ctx context.Context, file model.Obj, args model.LinkArgs)
req.SetResult(&resp).SetBody(FsGetReq{
Path: file.GetPath(),
Password: d.MetaPassword,
}).SetHeader(headers)
}).SetHeaders(headers)
})
if err != nil {
return nil, err
Expand Down

0 comments on commit 55c61aa

Please sign in to comment.