Skip to content

Commit

Permalink
Merge pull request #6026 from readthedocs/humitos/use-subdomain-locally
Browse files Browse the repository at this point in the history
Avoid returning invalid domain when using USE_SUBDOMAIN=True in dev
  • Loading branch information
humitos authored Aug 21, 2019
2 parents aaa3ade + ef48c97 commit 83f7b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs/core/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def process_request(self, request):
# Serve CNAMEs
if (
public_domain not in host and
settings.PRODUCTION_DOMAIN not in host and
settings.PRODUCTION_DOMAIN not in (host, full_host) and
'localhost' not in host and
'testserver' not in host
):
Expand Down

0 comments on commit 83f7b66

Please sign in to comment.