mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-11-18 07:23:50 +08:00
fix: select random browser user agents for outbound HTTP
This commit is contained in:
1 parent
17c2fc5e08
commit
171db405dd
18 files changed
+205
-71
No files matched your search
@@ -127,7 +127,7 @@ func FetchLatest(ctx context.Context, c *http.Client) (*Release, error) {
|
||||
return nil, err
|
||||
}
|
||||
req.Header.Set("Accept", "application/vnd.github+json")
|
||||
httpidentity.ApplyRequired(req)
|
||||
httpidentity.Apply(req)
|
||||
|
||||
resp, err := c.Do(req)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user