Skip to content

Commit

Permalink
Fixed #2782 -- Fixed incorrect request.META['SERVER_PORT'] for mod_py…
Browse files Browse the repository at this point in the history
…thon.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3866 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Sep 26, 2006
1 parent 5e21888 commit b019331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/core/handlers/modpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': self._req.server.port,
'SERVER_PORT': str(self._req.connection.local_addr[1]),
'SERVER_PROTOCOL': self._req.protocol,
'SERVER_SOFTWARE': 'mod_python'
}
Expand Down

0 comments on commit b019331

Please sign in to comment.