better request.requires_https, thanks Yarin and Niphlod

This commit is contained in:
Massimo
2012-10-03 12:32:12 -05:00
parent 96247eda51
commit c80a6db604
2 changed files with 2 additions and 1 deletions

View File

@@ -1 +1 @@
Version 2.0.9 (2012-10-03 11:58:23) dev
Version 2.0.9 (2012-10-03 12:32:01) dev

View File

@@ -128,6 +128,7 @@ class Request(Storage):
and secure the session.
"""
if not global_settings.cronjob and not self.is_https:
session.forget()
redirect(URL(scheme='https', args=self.args, vars=self.vars))
current.session.secure()