[Nitro] request mangling
george.moschovitis at gmail.com
Fri Nov 11 03:36:44 EST 2005
I will have a look at this.
On 11/11/05, Bryan Soto <bryan.a.soto at gmail.com> wrote:
> 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
> Nitro-general mailing list
> Nitro-general at rubyforge.org
More information about the Nitro-general