Django

Code

Show
Ignore:
Timestamp:
11/21/08 06:00:51 (2 months ago)
Author:
mtredinnick
Message:

Fixed #2782 -- Make the server port available through the modpython handler.
(Originally applied in r3866, reverted in r3927 and now verified as correct).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/handlers/modpython.py

    r9189 r9512  
    148148                'SCRIPT_NAME':       self.django_root, 
    149149                'SERVER_NAME':       self._req.server.server_hostname, 
    150                 'SERVER_PORT':       self._req.server.port
     150                'SERVER_PORT':       self._req.connection.local_addr[1]
    151151                'SERVER_PROTOCOL':   self._req.protocol, 
    152152                'SERVER_SOFTWARE':   'mod_python'