Fix off-by-one bug in celebratoday.go
This commit is contained in:
@@ -24,7 +24,7 @@ func APIClient() (string, error) {
|
|||||||
|
|
||||||
// Формальная попытка притвориться браузером.
|
// Формальная попытка притвориться браузером.
|
||||||
_, _, day := time.Now().Date()
|
_, _, day := time.Now().Date()
|
||||||
userAgent := Config.UserAgents[day]
|
userAgent := Config.UserAgents[day-1]
|
||||||
|
|
||||||
if err := requests.URL(url).UserAgent(userAgent).
|
if err := requests.URL(url).UserAgent(userAgent).
|
||||||
Header("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8").
|
Header("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8").
|
||||||
|
|||||||
Reference in New Issue
Block a user