[Nitro] Webrick not serving files without dots

Jonathan Buch john at oxyliquit.de
Sat Jan 20 05:22:06 EST 2007

Hi George,

I find this patch a little questionable.  Is this just a speed
enhancement, or does is serve another purpose?

Could we add a File.file?() up there?

Wed Dec 20 16:41:08 CET 2006  George Moschovitis <george.moschovitis at gmail.com>
   * Dont pass resource uris to Nitro and don't try to handle Nitro uris with Webricks FileHandler.
diff -rN old-nitro-0.40-own/nitro/lib/nitro/adapter/webrick.rb new-nitro-0.40-own/nitro/lib/nitro/adapter/webrick.rb
>     return(false) unless req.path_info =~ /\./

(Not yet active coding etc again, I just remembered this bit and
don't want to let this slide into the 'dust'.)

This should work the same in any adapter.  With Apache for example,
when the file exists, serve, if not, call nitro.  The same behaviour
should be replicated with webrick/mongrel as well.

Have a nice day,


Feel the love

More information about the Nitro-general mailing list