Skip to content

Commit

Permalink
Merge pull request rails#50323 from skipkayhil/hm-rack-head-codes
Browse files Browse the repository at this point in the history
Fix tests for status code change on Rack HEAD
  • Loading branch information
yahonda authored Dec 11, 2023
2 parents 28befe9 + eed1cb2 commit 89d8569
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def code_and_name

private
def code_from_name(name)
GENERIC_RESPONSE_CODES[name] || Rack::Utils::SYMBOL_TO_STATUS_CODE[name]
GENERIC_RESPONSE_CODES[name] || Rack::Utils.status_code(name)
end

def name_from_code(code)
Expand Down

0 comments on commit 89d8569

Please sign in to comment.