Skip to content

Commit

Permalink
Just check the domain without the port in the middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickaël Hoareau committed Apr 5, 2012
1 parent 2a4b167 commit 9def264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion localeurl/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self):
raise django.core.exceptions.MiddlewareNotUsed()

def process_request(self, request):
hostname = request.get_host()
hostname = request.get_host().split(":")[0]

locale, path = utils.strip_path(request.path_info)
if localeurl_settings.USE_SESSION and not locale:
Expand Down

0 comments on commit 9def264

Please sign in to comment.