Pass buttons.reddit.com requests through the subreddit redirect logic.

This commit is contained in:
Max Goodman
2011-05-23 15:36:35 -07:00
parent 6087bddfe5
commit d1ae1650bf

View File

@@ -307,7 +307,7 @@ class DomainMiddleware(object):
sr_redirect = None
for sd in list(sub_domains):
# subdomains to disregard completely
if sd in ('www', 'origin', 'beta', 'pay'):
if sd in ('www', 'origin', 'beta', 'pay', 'buttons'):
continue
elif sd == 'blog':
r = Response()