mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	Fixed #2782 -- Fixed incorrect request.META['SERVER_PORT'] for mod_python.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3866 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -102,7 +102,7 @@ class ModPythonRequest(http.HttpRequest): | |||||||
|                 'REQUEST_METHOD':    self._req.method, |                 'REQUEST_METHOD':    self._req.method, | ||||||
|                 'SCRIPT_NAME':       None, # Not supported |                 'SCRIPT_NAME':       None, # Not supported | ||||||
|                 'SERVER_NAME':       self._req.server.server_hostname, |                 '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_PROTOCOL':   self._req.protocol, | ||||||
|                 'SERVER_SOFTWARE':   'mod_python' |                 'SERVER_SOFTWARE':   'mod_python' | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user