fix: Add user agent for opensea query

This commit is contained in:
Anthony Laibe 2022-01-18 10:53:34 +01:00 committed by Andrea Maria Piana
parent 22bb09a94f
commit 76436f7768
1 changed files with 1 additions and 0 deletions

View File

@ -183,6 +183,7 @@ func (o *OpenseaClient) doOpenseaRequest(url string) ([]byte, error) {
return nil, err
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("User-Agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0")
resp, err := o.client.Do(req)
if err != nil {