This commit is contained in:
Howl 2016-10-02 22:30:52 +02:00
parent 2e2b1e481b
commit e5504d2e29
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ func initialCaretaker(c *gin.Context, f func(md common.MethodData) common.CodeMe
// requests from hanayo should not be rate limited.
if !(c.Request.Header.Get("H-Key") == cf.HanayoKey && c.Request.UserAgent() == "hanayo") {
perUserRequestLimiter(md.ID(), c.ClientIP())
} else {
doggoTags = append(doggoTags, "hanayo")
}