Django

Code

Changeset 3866

Show
Ignore:
Timestamp:
09/26/06 11:00:52 (2 years ago)
Author:
adrian
Message:

Fixed #2782 -- Fixed incorrect request.METASERVER_PORT? for mod_python.

Files:

Legend:

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

    r3820 r3866  
    103103                'SCRIPT_NAME':       None, # Not supported 
    104104                'SERVER_NAME':       self._req.server.server_hostname, 
    105                 'SERVER_PORT':       self._req.server.port
     105                'SERVER_PORT':       str(self._req.connection.local_addr[1])
    106106                'SERVER_PROTOCOL':   self._req.protocol, 
    107107                'SERVER_SOFTWARE':   'mod_python'