Skip to content

Commit

Permalink
Fixed custom user agent issue in headless
Browse files Browse the repository at this point in the history
  • Loading branch information
Ice3man543 committed Mar 31, 2021
1 parent 973e0be commit 8233efe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion v2/pkg/protocols/headless/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ func New(options *types.Options) (*Browser, error) {
customAgent = parts[1]
}
}
customAgent = uarand.GetRandom()
if customAgent == "" {
customAgent = uarand.GetRandom()
}
httpclient, err := newhttpClient(options)
if err != nil {
return nil, err
Expand Down

0 comments on commit 8233efe

Please sign in to comment.