Permalink
Browse files

correct the HTTP status code range

  • Loading branch information...
shreeve authored and rkh committed Jul 28, 2010
1 parent f34066c commit 5bd0343ab5cf0e60b9596562a73cb1798ae3ae5e
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sinatra/base.rb
View
@@ -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.