Changeset 1c68fbb for asadb/mit/__init__.py
- Timestamp:
- May 29, 2010, 10:34:45 PM (15 years ago)
- Branches:
- master, fysm-4-1, space-access, stable, stage, test-hooks
- Children:
- d67c1c1
- Parents:
- 00e16ed
- git-author:
- Alex Dehnert <adehnert@…> (05/29/10 22:34:45)
- git-committer:
- Alex Dehnert <adehnert@…> (05/29/10 22:34:45)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asadb/mit/__init__.py
r4f37035 r1c68fbb 47 47 48 48 def scripts_login(request, **kwargs): 49 if request.META['HTTP_HOST'] == 'localhost': 49 host = request.META['HTTP_HOST'].split(':')[0] 50 if host == 'localhost': 50 51 return login(request, **kwargs) 51 52 elif request.META['SERVER_PORT'] == '444': … … 65 66 else: 66 67 # Move to port 444 67 host = request.META['HTTP_HOST'].split(':')[0]68 68 redirect_to = "https://%s:444%s" % (host, request.META['REQUEST_URI'], ) 69 69 return HttpResponseRedirect(redirect_to)
Note: See TracChangeset
for help on using the changeset viewer.