lib/rack/app/instance_methods/serve_file.rb in rack-app-7.6.4 vs lib/rack/app/instance_methods/serve_file.rb in rack-app-7.6.5

- old
+ new

@@ -1,11 +1,11 @@ module Rack::App::InstanceMethods::ServeFile def serve_file(file_path) - raw_rack_resp = Rack::App::FileServer.serve_file(request.env, file_path) - response.status = raw_rack_resp[0] - response.headers.merge!(raw_rack_resp[1]) - response.body = raw_rack_resp[2] + rack_resp = Rack::App::FileServer.serve_file(request.env, file_path) + response.status = rack_resp[0] + response.headers.merge!(rack_resp[1]) + response.body = rack_resp[2] finish! end end