Permalink
Browse files

Fix params encoding.

  • Loading branch information...
1 parent a5991f5 commit 68d2d7b7e1077a79cab60a65f009678d32118e07 @rkh committed Sep 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sinatra/base.rb
View
@@ -1129,7 +1129,7 @@ def caller_locations
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

0 comments on commit 68d2d7b

Please sign in to comment.