Class: MultipartBufferSetter

Inherits:
Object
  • Object
show all
Defined in:
common/multipart_buffer_setter.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ MultipartBufferSetter

Returns a new instance of MultipartBufferSetter.



3
4
5
# File 'common/multipart_buffer_setter.rb', line 3

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



7
8
9
10
# File 'common/multipart_buffer_setter.rb', line 7

def call(env)
  env.merge!(Rack::RACK_MULTIPART_BUFFER_SIZE => 100*1024*1024)
  @app.call(env)
end