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:
parent
b0959a5da9
commit
e9030d08b4
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue