Sha256: 2db85ca95e3e129477622114249d3ac6bceb4a519221df694b9f74ed4ee5c37a

Contents?: true

Size: 229 Bytes

Versions: 3

Compression:

Stored size: 229 Bytes

Contents

hdr = {'Content-Type' => 'text/plain', 'Content-Length' => '0'}
app = lambda do |env|
  nr = 0
  while buf = env['rack.input'].read(65536)
    nr += buf.size
  end
  [ 200, hdr.merge('X-Read-Length' => nr.to_s), [] ]
end
run app

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jubilee-3.0.0.beta2-java test/apps/overwrite_check.ru
jubilee-2.1.0.rc1-java test/apps/overwrite_check.ru
jubilee-2.1.0.beta-java test/apps/overwrite_check.ru