Changes between Version 5 and Version 6 of MultiHostMiddleware
- Timestamp:
- Feb 19, 2013, 1:01:46 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MultiHostMiddleware
v5 v6 51 51 52 52 # best way to do this. 53 host = request.META["HTTP_HOST"]54 53 host_port = host.split(':') 55 56 54 if len(host_port)==2: 57 55 host = host_port[0]