Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmotta committed May 26, 2023
1 parent 8aaf89f commit da6f2e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions protocol/linkpreview/linkpreview.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ const (
headerAcceptJSON = "application/json; charset=utf-8"
headerAcceptText = "text/html; charset=utf-8"

// Without an user agent, many providers treat status-go as a gluttony bot,
// and either respond more frequently with a 429 (Too Many Requests), or
// simply refuse to return valid data.
// Without a particular user agent, many providers treat status-go as a
// gluttony bot, and either respond more frequently with a 429 (Too Many
// Requests), or simply refuse to return valid data. Note that using a known
// browser UA doesn't work well with some providers, such as Spotify,
// apparently they still flag status-go as a bad actor.
headerUserAgent = "status-go/v0.151.15"

// Currently set to English, but we could make this setting dynamic according
Expand Down

0 comments on commit da6f2e7

Please sign in to comment.