Permalink
Browse files

Default default_internal encoding to default_external encoding.

  • Loading branch information...
1 parent 7289cd9 commit e4e9e659e118b87de01c9a3ee211e8388fed68ac @rkh committed Sep 7, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/sinatra/base.rb
View
@@ -1104,6 +1104,7 @@ def default_encoding=(value)
@default_encoding = value
else
Encoding.default_external = value
+ Encoding.default_internal ||= Encoding.default_external
@default_encoding = Encoding.default_external
end
end

0 comments on commit e4e9e65

Please sign in to comment.