Skip to content

Commit 0910496

Browse files
committed
do not set user agent to empty string
1 parent 412f26a commit 0910496

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

slackauth.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ func WithCookie(cookie ...*http.Cookie) Option {
6060
// WithUserAgent sets the user agent for the session.
6161
func WithUserAgent(ua string) Option {
6262
return func(o *options) {
63-
o.userAgent = ua
63+
if ua != "" {
64+
o.userAgent = ua
65+
}
6466
}
6567
}
6668

0 commit comments

Comments
 (0)