Changes between Version 5 and Version 6 of MultiHostMiddleware


Ignore:
Timestamp:
02/19/13 01:01:46 (2 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MultiHostMiddleware

    v5 v6  
    5151
    5252            # best way to do this.
    53             host = request.META["HTTP_HOST"]
    5453            host_port = host.split(':')
    55 
    5654            if len(host_port)==2:                   
    5755                host = host_port[0]
Back to Top