Re: SCGI + Quixote, Location / ?

David Binger <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
On Aug 10, 2005, at 11:23 PM, Neil Schemenauer wrote:

> For your specific problem, if you have:
>
>     SCGIMount /rl localhost:3000
>
> then the URI /rl/ will result in SCRIPT_NAME="/rl" and PATH_INFO="/".
> If the URI is /rl then SCRIPT_NAME="/rl" and PATH_INFO="".  That
> will trigger the following assertion in Quixote:
>
> Traceback (most recent call last):
>   File "/home/nas/lib/python/quixote/publish.py", line 273, in  
> process_request
>     output = self.try_publish(request)
>   File "/home/nas/lib/python/quixote/publish.py", line 248, in  
> try_publish
>     assert path[:1] == '/'
> AssertionError
>
> I think we could change Quixote to do a redirect (just like in other
> cases when a trailing slash is missing) instead of raising an error.

Thanks for the explanation.   Now I see where that redirect would be
valuable.
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.