# File lib/camping/server.rb, line 174 def call(env) status, headers, body = @app.call(env) if key = headers.keys.grep(/X-Sendfile/).first filename = headers[key] content = open(filename,'rb') { | io | io.read} headers['Content-Length'] = size(content).to_s body = [content] end return status, headers, body end
Generated with the Darkfish Rdoc Generator 2.