> raise web.redirect("https://" + web.ctx.host + "/foo/bar")
Thanks! However now I'm experiencing the issue that web.ctx.protocol
always returns "http". So when I do the redirect, I enter a redirect
loop.
My code is simple:
class foo:
def force_ssl(self):
if web.ctx.protocol == "http":
raise web.redirect("https://" + web.ctx.host + "/
foo")
def GET(self):
force_ssl(self)
# do secure stuff here
Casey
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.