diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-01-22 11:04:52 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-01-22 11:43:06 +0000 |
commit | 705cf5fcf8ccb37deef5d2b922d6d78d34765c5b (patch) | |
tree | 19b250d132aa1c4f9a50b59d1096cf4ce8a34122 /t/t0005-working_directory_app.rb.sh | |
parent | faf1edc74c9bb35cf4e131d794c1923bf124aa1c (diff) | |
download | unicorn-705cf5fcf8ccb37deef5d2b922d6d78d34765c5b.tar.gz |
Rack 1.5.0 (protocol version [1,2]) adds support for hijacking the client socket (removing it from the control of unicorn (or any other Rack webserver)). Tested with rack 1.5.0.
Diffstat (limited to 't/t0005-working_directory_app.rb.sh')
-rwxr-xr-x | t/t0005-working_directory_app.rb.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t0005-working_directory_app.rb.sh b/t/t0005-working_directory_app.rb.sh index 37c6fa7..0fbab4f 100755 --- a/t/t0005-working_directory_app.rb.sh +++ b/t/t0005-working_directory_app.rb.sh @@ -11,7 +11,10 @@ t_begin "setup and start" && { cat > $t_pfx.app/fooapp.rb <<\EOF class Fooapp def self.call(env) - [ 200, [%w(Content-Type text/plain), %w(Content-Length 2)], %w(HI) ] + # Rack::Lint in 1.5.0 requires headers to be a hash + h = [%w(Content-Type text/plain), %w(Content-Length 2)] + h = Rack::Utils::HeaderHash.new(h) + [ 200, h, %w(HI) ] end end EOF |