Fix params encoding.

This commit is contained in:
Konstantin Haase 2010-09-13 23:45:21 +02:00
parent a5991f512b
commit 68d2d7b7e1
1 changed files with 1 additions and 1 deletions

View File

@ -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