mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	Changed django.core.handlers.modpython ModPythonRequest.is_secure() to use req.is_https(). Thanks, Jeremy Dunck
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3919 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -41,7 +41,7 @@ class ModPythonRequest(http.HttpRequest): | |||||||
|         return '%s%s' % (self.path, self._req.args and ('?' + self._req.args) or '') |         return '%s%s' % (self.path, self._req.args and ('?' + self._req.args) or '') | ||||||
|  |  | ||||||
|     def is_secure(self): |     def is_secure(self): | ||||||
|         return self._req.subprocess_env.has_key('HTTPS') and self._req.subprocess_env['HTTPS'] == 'on' |         return bool(self._req.is_https()) | ||||||
|  |  | ||||||
|     def _load_post_and_files(self): |     def _load_post_and_files(self): | ||||||
|         "Populates self._post and self._files" |         "Populates self._post and self._files" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user