Skip to content

Commit

Permalink
205 no longer returns a body on rack master
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Aug 20, 2011
1 parent 5a16e33 commit 2e9534e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers_test.rb
Expand Up @@ -7,7 +7,7 @@ def test_default
end end


def status_app(code, &block) def status_app(code, &block)
code += 1 if code == 204 or code == 304 code += 2 if [204, 205, 304].include? code
block ||= proc { } block ||= proc { }
mock_app do mock_app do
get '/' do get '/' do
Expand Down

0 comments on commit 2e9534e

Please sign in to comment.