# File lib/camping/server.rb, line 242
242:       def call(env)
243:         status, headers, body = @app.call(env)
244:         
245:         if key = headers.keys.grep(/X-Sendfile/i).first
246:           filename = headers[key]
247:           content = open(filename,'rb') { | io | io.read}
248:           headers['Content-Length'] = size(content).to_s
249:           body = [content]
250:         end
251:         
252:         return status, headers, body
253:       end