Skip to content

Commit 89d8569

Browse files
authored
Merge pull request rails#50323 from skipkayhil/hm-rack-head-codes
Fix tests for status code change on Rack HEAD
2 parents 28befe9 + eed1cb2 commit 89d8569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionpack/lib/action_dispatch/testing/assertion_response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def code_and_name
3636

3737
private
3838
def code_from_name(name)
39-
GENERIC_RESPONSE_CODES[name] || Rack::Utils::SYMBOL_TO_STATUS_CODE[name]
39+
GENERIC_RESPONSE_CODES[name] || Rack::Utils.status_code(name)
4040
end
4141

4242
def name_from_code(code)

0 commit comments

Comments
 (0)