1 # must be run without Rack::Lint since that clobbers to_path
2 class Wrapper < Struct.new(:app)
4 status, headers, body = app.call(env)
5 body = Body.new(body) if body.respond_to?(:to_path)
6 [ status, headers, body ]
9 class Body < Struct.new(:body)
19 ::File.open(ENV['fifo'], 'wb') { |fp| fp.puts "CLOSING" }
24 run Rack::File.new(Dir.pwd)