1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

No need to dup temporary strings

This commit is contained in:
Akira Matsuda 2019-09-17 02:01:53 +09:00
parent fc2e836aed
commit 30a73035c7

View file

@ -41,7 +41,7 @@ module ActionDispatch
end
parameters = route.defaults.merge parameters.transform_values { |val|
val.dup.force_encoding(::Encoding::UTF_8)
val.force_encoding(::Encoding::UTF_8)
}
req.path_parameters = set_params.merge parameters