Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2865 -- Reverted [3866] (problem with mod_python SERVER_PORT

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9c4918e16d5432e0333fb2f0281a992dcc6919b9 1 parent 185a5f6
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/handlers/modpython.py
View
2  django/core/handlers/modpython.py
@@ -102,7 +102,7 @@ def _get_meta(self):
'REQUEST_METHOD': self._req.method,
'SCRIPT_NAME': None, # Not supported
'SERVER_NAME': self._req.server.server_hostname,
- 'SERVER_PORT': str(self._req.connection.local_addr[1]),
+ 'SERVER_PORT': self._req.server.port,
'SERVER_PROTOCOL': self._req.protocol,
'SERVER_SOFTWARE': 'mod_python'
}
Please sign in to comment.
Something went wrong with that request. Please try again.