Django

Code

Changeset 9513

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

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

Backport of r9512 from trunk. This is a bugfix, since the value is used in
HttpRequest.get_host().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/releases/1.0.X/django/core/handlers/modpython.py

    r9190 r9513  
    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'