lib/rack/contrib/sendfile.rb in rack-contrib-1.4.0 vs lib/rack/contrib/sendfile.rb in rack-contrib-1.5.0
- old
+ new
@@ -1,12 +1,8 @@
require 'rack/file'
module Rack
- class File #:nodoc:
- alias :to_path :path
- end
- # = Sendfile
#
# The Sendfile middleware intercepts responses whose body is being
# served from a file and replaces it with a server specific X-Sendfile
# header. The web server is then responsible for writing the file contents
# to the client. This can dramatically reduce the amount of work required