[Nitro] request mangling

Bryan Soto bryan.a.soto at gmail.com
Thu Nov 10 19:26:21 EST 2005

The rewrite seems to be performed solely to check whether there is a static
file to serve.

I'm not sure as to correctness, but as a practical matter, the problem seems
to be unrewrite isn't properly cleaning up after itself.

Attached patch against nitro/adapter/webrick.rb (Version 0.24.0) seems to
fix that and the OPs other problem of 'report/' vs '/report'. At least it
worked for me on linux-2.6 w/ ruby-1.8.3.


On 11/10/05, James Britt <james_b at neurogami.com> wrote:
> George Moschovitis wrote:
> >>This strikes me a Bad Thing, something that should be handled at the
> >>application level. Compulsory rewrites leave a bad taste in my mouth.
> >
> >
> > Ok James, do you have any suggestions, how to improve this? I 'll try
> > to think of something better my self, nut I would like some input.
> Oh, well, it's so much easier to gripe than patch.
> :)
> No, I don't have anything concrete to offer, though some form of
> DirectoryIndex for Nitro feature would be nice.
> It seems that this 'rewrite to index.html' only happens in WEBrick; is
> this because other runners have their own means for URL rewriting and/or
> setting the directory index?
> A nice syntax might allow for passing this value into the runner in
> run.rb, but then it may have to play nice with all adapters, not just
> WEBrick.
> James Britt
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20051110/5ac7c914/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: webrick.patch
Type: text/x-patch
Size: 1290 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20051110/5ac7c914/attachment.bin 

More information about the Nitro-general mailing list