Skip to content

Commit

Permalink
Fixes Encoding::CompatibilityError
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Sodhi committed Apr 1, 2014
1 parent 4ddbdad commit cbbbe1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/papertrail/http_client.rb
Expand Up @@ -13,7 +13,7 @@ def initialize(response)
end

def body
@body ||= Papertrail::OkJson.decode(__getobj__.body)
@body ||= Papertrail::OkJson.decode(__getobj__.body.dup.force_encoding('UTF-8'))
end

end
Expand Down

0 comments on commit cbbbe1d

Please sign in to comment.