pass-through body.to_path when wrapping the body
commitb895d3d0393a647d3602783bc53bf68e223e51c9
authorEric Wong <normalperson@yhbt.net>
Sun, 6 Jun 2010 05:17:14 +0000 (6 05:17 +0000)
committerEric Wong <normalperson@yhbt.net>
Sun, 6 Jun 2010 06:26:45 +0000 (6 06:26 +0000)
treedb7a7ed6d0f3200f27617a79aacd402d809eb722
parentbc1d1df38d7803ce9fdae05fc5129051eeed89e0
pass-through body.to_path when wrapping the body

Certain configurations of Rainbows! (and Zbatery) are able to
use the return value of body.to_path to serve static files
more efficiently.

This also allows middleware like Rack::Contrib::Sendfile to
work properly higher up the stack, too.
ext/clogger_ext/clogger.c
ext/clogger_ext/ruby_1_9_compat.h
lib/clogger.rb
lib/clogger/pure.rb
test/test_clogger_to_path.rb [new file with mode: 0644]