Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[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
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/handlers/modpython.py
View
2  django/core/handlers/modpython.py
@@ -147,7 +147,7 @@ def _get_meta(self):
'REQUEST_METHOD': self._req.method,
'SCRIPT_NAME': self.django_root,
'SERVER_NAME': self._req.server.server_hostname,
- 'SERVER_PORT': self._req.server.port,
+ 'SERVER_PORT': self._req.connection.local_addr[1],
'SERVER_PROTOCOL': self._req.protocol,
'SERVER_SOFTWARE': 'mod_python'
}
Please sign in to comment.
Something went wrong with that request. Please try again.