mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-01-07 13:17:57 -05:00
Update user agent handling
This commit is contained in:
parent
c91f0b4613
commit
25e4493631
@ -35,11 +35,10 @@ func GetBodyHtml(url string) (string, error) {
|
||||
|
||||
s := rand.NewSource(time.Now().UnixNano())
|
||||
r := rand.New(s)
|
||||
userAgent := userAgents[r.Intn(len(userAgents))]
|
||||
|
||||
req.Header.Set(
|
||||
"User-Agent",
|
||||
userAgent,
|
||||
userAgents[r.Intn(len(userAgents))],
|
||||
)
|
||||
req.Header.Set(
|
||||
"Accept",
|
||||
|
Loading…
Reference in New Issue
Block a user