mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #10407 from NARKOZ/encoding-constant
Use constant for encoding
This commit is contained in:
commit
8a7c2e1cdf
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ module ActionDispatch
|
|||
|
||||
new_hash = {}
|
||||
params.each do |k, v|
|
||||
new_key = k.is_a?(String) ? k.dup.force_encoding("UTF-8").encode! : k
|
||||
new_key = k.is_a?(String) ? k.dup.force_encoding(Encoding::UTF_8).encode! : k
|
||||
new_hash[new_key] =
|
||||
case v
|
||||
when Hash
|
||||
|
|
Loading…
Reference in a new issue