Re: RELEASED: scgi-1.6

David Binger <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
On Aug 11, 2005, at 4:56 PM, Al Pacifico wrote:

> <begin paste>
> Here is the patch to that _q_traverse():
>
> -        path = request.get_environ('PATH_INFO', '')
> -        assert path[:1] == '/'
> +        path = request.get_environ('PATH_INFO')
> +        if not path:
> +            return redirect(request.get_environ('SCRIPT_NAME', '') +
> '/',
> +                            permanent=True)
>
> <end of paste>
>
> David had suggested that this patch is needed for Apache.

Not for Apache, really, but for any context where, as Mike suggested,
you trust the SCRIPT_NAME to be right, and where you just want to treat
an empty path in what seems like the on

>
> David, could you comment on whether it's application breaks  
> simple_server
> and other server functionality and for which versions of mod_scgi?

I'm pretty sure this has no impact on the simple_server, where
the SCRIPT_NAME is always '' and the PATH_INFO is never empty.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.