Skip to content

Commit 3e37f57

Browse files
authored
fix(openlist_driver): ensure UA is correctly propagated (#1679)
1 parent c0d4803 commit 3e37f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/openlist/driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (d *OpenList) Link(ctx context.Context, file model.Obj, args model.LinkArgs
117117
if d.PassUAToUpsteam {
118118
userAgent := args.Header.Get("user-agent")
119119
if userAgent != "" {
120-
headers["User-Agent"] = base.UserAgent
120+
headers["User-Agent"] = userAgent
121121
}
122122
}
123123
// if PassIPToUpsteam is true, then pass the ip address to the upstream

0 commit comments

Comments
 (0)