Permalink
Browse files

quick fix for GH #94

Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
  • Loading branch information...
1 parent 9a01e3d commit b2a73d565dff726f841f56f684bf28ddc5757e9c @gnandretta gnandretta committed with rkh Oct 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sinatra/base.rb
View
@@ -1226,7 +1226,7 @@ def caller_locations
Encoding.default_internal ||= Encoding.default_external
def force_encoding(data)
- return if data == self
+ return if data == self || data.is_a?(Tempfile)
if data.respond_to? :force_encoding
data.force_encoding(Encoding.default_external)
elsif data.respond_to? :each_value

0 comments on commit b2a73d5

Please sign in to comment.