From c80a6db604a4abc31e101f6a42429e017daa448e Mon Sep 17 00:00:00 2001 From: Massimo Date: Wed, 3 Oct 2012 12:32:12 -0500 Subject: [PATCH] better request.requires_https, thanks Yarin and Niphlod --- VERSION | 2 +- gluon/globals.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 3a85b362..a3303341 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-10-03 11:58:23) dev +Version 2.0.9 (2012-10-03 12:32:01) dev diff --git a/gluon/globals.py b/gluon/globals.py index 3d075b8c..8bf69150 100644 --- a/gluon/globals.py +++ b/gluon/globals.py @@ -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()