On Jul 5, 2006, at 6:48 AM, askel wrote: > It might be a wrong place to ask this question since this is Routes > specific one. In a project I'm currently working on I need to swithch > from plain HTTP to HTTPS to protect sencitive information entered and > submitted by user. > > If I use redirect_to(protocol='https', ...) it builds URL that has 80 > as a port. Of course, I can generate URL with url_for for HTTP > protocol > then convert it into HTTPS one by parsing/assembling it using urllib. > But it doesn't seem to be a nice. Is there any better way of dealing > with situations like that?
It shouldn't be adding port 80 actually. If your protocol is http and port is 80, or if the protocol is https and port is 443, adding a port is not needed. This was a bug in Routes and I've just committed a patch that fixes it. easy_install -U Routes==dev Will upgrade your Routes to the latest version that has the fix. HTH, Ben --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss -~----------~----~----~----~------~----~------~--~---
