Skip to content
Browse files

correct the HTTP status code range

  • Loading branch information...
1 parent f34066c commit 5bd0343ab5cf0e60b9596562a73cb1798ae3ae5e @shreeve shreeve committed with rkh Jul 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sinatra/base.rb
View
2 lib/sinatra/base.rb
@@ -588,7 +588,7 @@ def invoke(&block)
end
when res.respond_to?(:each)
@response.body = res
- when (100...599) === res
+ when (100..599) === res
@response.status = res
end

0 comments on commit 5bd0343

Please sign in to comment.
Something went wrong with that request. Please try again.