Skip to content

Commit

Permalink
Merge pull request #17 from rusq/ua-fix
Browse files Browse the repository at this point in the history
do not set user agent to empty string
  • Loading branch information
rusq authored Oct 6, 2024
2 parents 412f26a + 0910496 commit 0e5b0a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion slackauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ func WithCookie(cookie ...*http.Cookie) Option {
// WithUserAgent sets the user agent for the session.
func WithUserAgent(ua string) Option {
return func(o *options) {
o.userAgent = ua
if ua != "" {
o.userAgent = ua
}
}
}

Expand Down

0 comments on commit 0e5b0a4

Please sign in to comment.