Update the default User-Agent
This commit is contained in:
parent
87f0cd1940
commit
6b8d3ebbca
@ -284,7 +284,7 @@ func Search(ctx context.Context, searchTerm string, opts ...SearchOptions) ([]Re
|
||||
}
|
||||
|
||||
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 {
|
||||
c.UserAgent = opts[0].UserAgent
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user