mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-12 19:48:44 +00:00
Compare commits
3 Commits
Xe/unflake
...
Xe/default
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46ae0dd8bf | ||
|
|
1aa1071156 | ||
|
|
6ee14db3ec |
@@ -194,7 +194,6 @@ func (u *userAgentRoundTripper) RoundTrip(req *http.Request) (*http.Response, er
|
|||||||
// Only set if not already present
|
// Only set if not already present
|
||||||
req = req.Clone(req.Context()) // avoid mutating original request
|
req = req.Clone(req.Context()) // avoid mutating original request
|
||||||
req.Header.Set("User-Agent", "Mozilla/5.0")
|
req.Header.Set("User-Agent", "Mozilla/5.0")
|
||||||
req.Header.Set("Accept-Encoding", "gzip")
|
|
||||||
return u.rt.RoundTrip(req)
|
return u.rt.RoundTrip(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user