Exclude ssl.reddit.com from the subreddit redirection middleware.

This commit is contained in:
Max Goodman
2011-09-30 10:04:49 -07:00
committed by Neil Williams
parent c051491717
commit a0bd8cfee7

View File

@@ -306,7 +306,7 @@ class DomainMiddleware(object):
sr_redirect = None
for sd in list(sub_domains):
# subdomains to disregard completely
if sd in ('www', 'origin', 'beta', 'pay', 'buttons'):
if sd in ('www', 'origin', 'beta', 'pay', 'buttons', 'ssl'):
continue
# subdomains which change the extension
elif sd == 'm':