Changes between Version 5 and Version 6 of MultiHostMiddleware


Ignore:
Timestamp:
Feb 19, 2013, 1:01:46 AM (11 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