diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-04-27 02:04:25 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-04-27 02:04:25 -0700 |
commit | 7faf47b6bc50de4387697a90480e354acd0c9917 (patch) | |
tree | 023659ebb330936051a4619cbda661ef110e618a /lib/rainbows/base.rb | |
parent | 85316b09eba1443508e78237b56e42292ab3b127 (diff) | |
download | rainbows-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.rb | 2 |
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) |