On Sat, Nov 22, 2008 at 1:51 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> In application.py:
>
> ctx.protocol = env.get('HTTPS') and 'https' or 'http'
>
> In my case, env.get('HTTPS') = 'off', so ctx.protocol is set to
> 'https', which is wrong.

You must be looking at old code. Here is the current code:

        if env.get('HTTPS', '').lower() in ['on', 'true']:
            ctx.protocol = 'https'
        else:
            ctx.protocol = 'http'

see http://github.com/webpy/webpy/tree/master/web/application.py

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to