mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-26 10:02:42 +00:00
fix(lib): de-flake package lib tests (#1187)
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
@@ -194,6 +194,7 @@ 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