1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-10 18:10:49 +09:00

fix object graph user agent

This commit is contained in:
Pavel Zavyalov 2022-07-26 16:42:59 +02:00
parent b0959a5da9
commit e9030d08b4
No known key found for this signature in database
GPG key ID: D12476F8A1107A26

View file

@ -143,6 +143,7 @@ type proxyRoundTripper struct {
}
func (p *proxyRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
req.Header.Set("User-Agent", "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)")
resp, err := p.RoundTripper.RoundTrip(req)
if err == nil {
p.lastResponse = resp