Update the default User-Agent

This commit is contained in:
Kay Nelson 2023-05-17 14:57:49 +02:00 committed by Chris Joyce
parent 87f0cd1940
commit 6b8d3ebbca

View File

@ -284,7 +284,7 @@ func Search(ctx context.Context, searchTerm string, opts ...SearchOptions) ([]Re
} }
if opts[0].UserAgent == "" { if opts[0].UserAgent == "" {
c.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.5672 Safari/537.36" c.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
} else { } else {
c.UserAgent = opts[0].UserAgent c.UserAgent = opts[0].UserAgent
} }