Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10407 from NARKOZ/encoding-constant
Use constant for encoding
  • Loading branch information
carlosantoniodasilva committed May 2, 2013
1 parent d5a321d commit 30dcd48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/http/parameters.rb
Expand Up @@ -65,7 +65,7 @@ def normalize_encode_params(params)

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
Expand Down

0 comments on commit 30dcd48

Please sign in to comment.