diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-10-24 16:54:32 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-10-24 16:54:32 +0000 |
| commit | 9c4918e16d5432e0333fb2f0281a992dcc6919b9 (patch) | |
| tree | 07acae2e5d16361fb3fe4ba2b834403d43f696d1 /django/core/handlers/modpython.py | |
| parent | 185a5f661448643ff5bfb9b8079b078c29d39fc3 (diff) | |
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
Diffstat (limited to 'django/core/handlers/modpython.py')
| -rw-r--r-- | django/core/handlers/modpython.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/handlers/modpython.py b/django/core/handlers/modpython.py index 0550a04d4a..43d2fd2a97 100644 --- a/django/core/handlers/modpython.py +++ b/django/core/handlers/modpython.py @@ -102,7 +102,7 @@ class ModPythonRequest(http.HttpRequest): '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' } |
