lib/rack/app/instance_methods/serve_file.rb in rack-app-5.5.1 vs lib/rack/app/instance_methods/serve_file.rb in rack-app-5.6.0
- old
+ new
@@ -3,9 +3,9 @@
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]
- finish_response
+ finish!
end
end