about summary refs log tree commit homepage
diff options
context:
space:
mode:
-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" ] ]
 }