Fix off-by-one bug in celebratoday.go

This commit is contained in:
eleksir
2026-03-31 22:12:01 +03:00
parent 27ce4d3c78
commit dbfbd6865a

View File

@@ -24,7 +24,7 @@ func APIClient() (string, error) {
// Формальная попытка притвориться браузером.
_, _, day := time.Now().Date()
userAgent := Config.UserAgents[day]
userAgent := Config.UserAgents[day-1]
if err := requests.URL(url).UserAgent(userAgent).
Header("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8").