Permalink
Browse files

correct the HTTP status code range

  • Loading branch information...
1 parent 7f2b234 commit 996cf5b0c54a683f54bc602cea1899e6ac4a0dce @shreeve shreeve committed with Jul 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sinatra/base.rb
View
@@ -644,7 +644,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 996cf5b

Please sign in to comment.