mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 16:28:01 -05:00
reddit_base: Also grab dev AppEngine UAs.
"dev~" is sent when the AppEngine SDK is run on a local machine for development purposes.
This commit is contained in:
@@ -534,7 +534,7 @@ def ratelimit_agent(agent):
|
||||
request.environ['retry_after'] = SLICE_SIZE - remainder
|
||||
abort(429)
|
||||
|
||||
appengine_re = re.compile(r'AppEngine-Google; \(\+http://code.google.com/appengine; appid: s~([a-z0-9-]{6,30})\)\Z')
|
||||
appengine_re = re.compile(r'AppEngine-Google; \(\+http://code.google.com/appengine; appid: (?:dev|s)~([a-z0-9-]{6,30})\)\Z')
|
||||
def ratelimit_agents():
|
||||
user_agent = request.user_agent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user