reddit_base: Make appengine regex deal with custom User-Agents.

Previously, the AppEngine UA was forced. Now it is only force appended.
https://developers.google.com/appengine/docs/python/urlfetch/?hl=en
This commit is contained in:
Ricky Ramirez
2013-07-11 18:38:05 -07:00
parent 8f4ced9e74
commit 4eb3336f7b

View File

@@ -542,7 +542,7 @@ def ratelimit_agents():
return
# parse out the appid for appengine apps
appengine_match = appengine_re.match(user_agent)
appengine_match = appengine_re.search(user_agent)
if appengine_match:
appid = appengine_match.group(1)
ratelimit_agent(appid)