File: many_long_headers.ru

package info (click to toggle)
puma 6.6.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,884 kB
  • sloc: ruby: 17,542; ansic: 2,003; java: 1,006; sh: 379; makefile: 10
file content (9 lines) | stat: -rw-r--r-- 194 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
require 'securerandom'

long_header_hash = {}

30.times do |i|
  long_header_hash["X-My-Header-#{i}"] = SecureRandom.hex(1000)
end

run lambda { |env| [200, long_header_hash, ["Hello World"]] }