lib/intercom/request.rb in intercom-3.4.0 vs lib/intercom/request.rb in intercom-3.5.1

- old
+ new

@@ -103,10 +103,10 @@ @rate_limit_details = rate_limit_details end def decode(content_encoding, body) return body if (!body) || body.empty? || content_encoding != 'gzip' - Zlib::GzipReader.new(StringIO.new(body)).read + Zlib::GzipReader.new(StringIO.new(body)).read.force_encoding("utf-8") end def raise_errors_on_failure(res) if res.code.to_i.eql?(404) raise Intercom::ResourceNotFound.new('Resource Not Found')