Ticket #8281: django.patch
File django.patch, 524 bytes (added by , 16 years ago) |
---|
-
__init__.py
83 83 return location 84 84 85 85 def is_secure(self): 86 return os.environ.get("HTTPS") == "on" 86 environ = os.environ.get("HTTPS") 87 if environ: 88 return environ == "on" 89 return self.META.get("HTTPS").lower() == "on" 87 90 88 91 def is_ajax(self): 89 92 return self.META.get('HTTP_X_REQUESTED_WITH') == 'XMLHttpRequest'