Skip to content

Commit

Permalink
Support deprecated status code symbols. (#1637)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jul 5, 2024
1 parent 3c88e1c commit 03b0801
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def symbol_to_status_code(potential_symbol)
when :missing then 404
when :error then 500..599
when Symbol
::Rack::Utils::SYMBOL_TO_STATUS_CODE[potential_symbol]
::Rack::Utils.status_code(potential_symbol)
else
potential_symbol
end
Expand Down

0 comments on commit 03b0801

Please sign in to comment.