Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.0.X] Fixed #2782 -- Make the server port available through the mod…

…python

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().


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9513 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8bcde6492ae77aec45e62205e6d133bf91c361dd 1 parent d75628f
Malcolm Tredinnick authored November 21, 2008

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/core/handlers/modpython.py
2  django/core/handlers/modpython.py
@@ -147,7 +147,7 @@ def _get_meta(self):
147 147
                 'REQUEST_METHOD':    self._req.method,
148 148
                 'SCRIPT_NAME':       self.django_root,
149 149
                 'SERVER_NAME':       self._req.server.server_hostname,
150  
-                'SERVER_PORT':       self._req.server.port,
  150
+                'SERVER_PORT':       self._req.connection.local_addr[1],
151 151
                 'SERVER_PROTOCOL':   self._req.protocol,
152 152
                 'SERVER_SOFTWARE':   'mod_python'
153 153
             }

0 notes on commit 8bcde64

Please sign in to comment.
Something went wrong with that request. Please try again.