Sha256: d29bb001041485f60346372d435c948e45ecb9f7a3faad26f05368a5cb869cc6

Contents?: true

Size: 260 Bytes

Versions: 2

Compression:

Stored size: 260 Bytes

Contents

module Rack::App::InstanceMethods::Upload

  def serve_file(file_path)
    raw_rack_resp = Rack::App::FileServer.serve_file(request.env, file_path)
    response.headers.merge!(raw_rack_resp[1])
    response.body = raw_rack_resp.last
    return nil
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rack-app-2.2.0 lib/rack/app/instance_methods/upload.rb
rack-app-2.1.0 lib/rack/app/instance_methods/upload.rb