fix moderate docs

This commit is contained in:
Eugene
2017-12-23 03:07:35 -06:00
parent a110b2e4c6
commit d7cc5e3c83
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -39,11 +39,11 @@ func Limiter(recSec int, excludeIps ...string) func(http.Handler) http.Handler {
}
keys := []string{
r.Header.Get("Authorization"),
r.Header.Get("RemoteAddr"),
r.Header.Get("X-Forwarded-For"),
r.Header.Get("X-Real-IP"),
r.Header.Get("RemoteAddr"),
r.Header.Get("User-Agent"),
r.Header.Get("Authorization"),
}
if httpError := tollbooth.LimitByKeys(l, keys); httpError != nil {