reddit_base: Stricter User Agent ratelimiting.

This stops ratelimit checking after the first hit so that more specific
matches won't get extra ratelimiting from a more generic match.
This commit is contained in:
Ricky Ramirez
2013-06-11 14:15:27 -07:00
parent 99fb82d15b
commit 003fcf8943

View File

@@ -551,6 +551,7 @@ def ratelimit_agents():
for s in g.agents:
if s and user_agent and s in user_agent:
ratelimit_agent(s)
return
def ratelimit_throttled():
ip = request.ip.strip()