Skip to content

Commit b278be6

Browse files
committed
Fix invalid edge user agent
1 parent b1bf564 commit b278be6

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

random/useragent/browser.go

+6-9
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,17 @@ func Chrome() string {
2828

2929
var (
3030
edgeVersions = []string{
31-
"12.10240",
32-
"13.10586",
33-
"14.14393",
34-
"15.15063",
35-
"16.16299",
36-
"17.17134",
37-
"18.18362",
38-
"84.0.522.52",
31+
"79.0.522.52",
32+
"80.0.522.52",
33+
"81.0.522.52",
34+
"82.0.522.52",
35+
"83.0.522.52",
3936
"85.0.564.44",
4037
}
4138
)
4239

4340
func Edge() string {
44-
return fmt.Sprintf("%s Edge/%s", Chrome(), edgeVersions[rand.Intn(len(edgeVersions))])
41+
return fmt.Sprintf("%s Edg/%s", Chrome(), edgeVersions[rand.Intn(len(edgeVersions))])
4542
}
4643

4744
func Firefox() string {

0 commit comments

Comments
 (0)