about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-17 22:42:55 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-17 22:42:55 -0700
commit031127b1d047d05be7a2ec8af7480d02e9bbdd69 (patch)
tree991ab52014238496bec00005c69c2089e735866f /t
parent7a3ebef424f3e7db0a48ae35885c446d79b7d971 (diff)
downloadrainbows-031127b1d047d05be7a2ec8af7480d02e9bbdd69.tar.gz
Diffstat (limited to 't')
-rw-r--r--t/sleep.ru5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/sleep.ru b/t/sleep.ru
index 8b3499b..e163c79 100644
--- a/t/sleep.ru
+++ b/t/sleep.ru
@@ -1,7 +1,8 @@
 use Rack::ContentLength
-use Rack::ContentType
 
 run lambda { |env|
+  /\A100-continue\z/i =~ env['HTTP_EXPECT'] and return [ 100, {}, [] ]
+
   nr = 1
   env["PATH_INFO"] =~ %r{/([\d\.]+)\z} and nr = $1.to_f
 
@@ -12,5 +13,5 @@ run lambda { |env|
     Kernel
   end).sleep(nr)
 
-  [ 200, {}, [ "Hello\n" ] ]
+  [ 200, {'Content-Type' => 'text/plain'}, [ "Hello\n" ] ]
 }