fixed issue 728, bug in languages, thanks pgergo

This commit is contained in:
Massimo Di Pierro
2012-03-26 11:17:20 -05:00
parent bc4def632c
commit ba93692ed4
84 changed files with 222 additions and 137 deletions
+3 -2
View File
@@ -111,7 +111,7 @@ class Request(Storage):
for key,value in user_agent.items():
if isinstance(value,dict): user_agent[key] = Storage(value)
return user_agent
def requires_https(self):
"""
If request comes in over HTTP, redirect it to HTTPS
@@ -119,7 +119,7 @@ class Request(Storage):
"""
if not global_settings.cronjob and not self.is_https:
redirect(URL(scheme='https', args=self.args, vars=self.vars))
current.session.secure()
def restful(self):
@@ -618,3 +618,4 @@ class Session(Storage):