about summary refs log tree commit homepage
path: root/lib/rainbows/base.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-04-27 02:04:25 -0700
committerEric Wong <normalperson@yhbt.net>2010-04-27 02:04:25 -0700
commit7faf47b6bc50de4387697a90480e354acd0c9917 (patch)
tree023659ebb330936051a4619cbda661ef110e618a /lib/rainbows/base.rb
parent85316b09eba1443508e78237b56e42292ab3b127 (diff)
downloadrainbows-7faf47b6bc50de4387697a90480e354acd0c9917.tar.gz
Rack allows anything as the status, as long as it
returns a valid status integer on status.to_i.
Diffstat (limited to 'lib/rainbows/base.rb')
-rw-r--r--lib/rainbows/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb
index 27b4c1d..0cbc711 100644
--- a/lib/rainbows/base.rb
+++ b/lib/rainbows/base.rb
@@ -72,7 +72,7 @@ module Rainbows
         env[REMOTE_ADDR] = remote_addr
         status, headers, body = app.call(env.update(RACK_DEFAULTS))
 
-        if 100 == status
+        if 100 == status.to_i
           client.write(EXPECT_100_RESPONSE)
           env.delete(HTTP_EXPECT)
           status, headers, body = app.call(env)