I'm using Routes with a new framework I'm developing for Google's App
Engine environment and am running into an issue. When I pass
"qualified=True" to the url_for function the url returned is prefixed
with "HTTP/1.0://...". Ben Bangert asked me to post this here with
additional details.

Heres a snippet of my main.py file where Routes is setup:

# set up routes
        route = mapper.match(environ['PATH_INFO'])

        if route is None:
            response = HTTPNotFound()
            return response(environ, start_response)

        # route redirect function
        def _redirect(url):
            response = HTTPSeeOther(location=url)
            return response

        config = request_config()
        config.mapper = mapper
        config.mapper_dict = route
        config.host = environ['HTTP_HOST']
        config.protocol = environ['SERVER_PROTOCOL']
        config.redirect = _redirect

I think the issue is related to the line "config.protocol =
environ['SERVER_PROTOCOL']". Am I passing the wrong environment
variable to config.protocol?

Thanks!

- Justin Driscoll
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to