Fix params encoding.
This commit is contained in:
parent
a5991f512b
commit
68d2d7b7e1
|
@ -1129,7 +1129,7 @@ module Sinatra
|
|||
Encoding.default_internal ||= Encoding.default_external
|
||||
|
||||
def force_encoding(data)
|
||||
return if data != self
|
||||
return if data == self
|
||||
if data.respond_to? :force_encoding
|
||||
data.force_encoding(Encoding.default_external)
|
||||
elsif data.respond_to? :each_value
|
||||
|
|
Loading…
Reference in New Issue