Skip to content

Commit

Permalink
Merge pull request #366 from Fitblip/master
Browse files Browse the repository at this point in the history
Make sure hostname is always lowered before match
  • Loading branch information
bernardopires committed Sep 21, 2016
2 parents 899bf60 + f7d539f commit b9d3770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tenant_schemas/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def hostname_from_request(self, request):
""" Extracts hostname from request. Used for custom requests filtering.
By default removes the request's port and common prefixes.
"""
return remove_www(request.get_host().split(':')[0])
return remove_www(request.get_host().split(':')[0]).lower()

def process_request(self, request):
# Connection needs first to be at the public schema, as this is where
Expand Down

0 comments on commit b9d3770

Please sign in to comment.