diff --git a/poller.go b/poller.go index 87d6375..c339ce3 100644 --- a/poller.go +++ b/poller.go @@ -109,7 +109,7 @@ func (p *poll) do(ctx context.Context, pi *pollInfo) { // Get the user agent if len(pi.UserAgents) > 0 { - if len(pi.UserAgents) == 0 { + if len(pi.UserAgents) == 1 { ua = pi.UserAgents[0] } uas = pi.UserAgents