lib/appsignal/transmitter.rb in appsignal-1.3.6.beta.1 vs lib/appsignal/transmitter.rb in appsignal-1.3.6
- old
+ new
@@ -49,13 +49,11 @@
def http_post(payload)
Net::HTTP::Post.new(uri.request_uri).tap do |request|
request['Content-Type'] = CONTENT_TYPE
request['Content-Encoding'] = CONTENT_ENCODING
- request.body = Zlib::Deflate.deflate(
- Appsignal::Utils.json_generate(payload),
- Zlib::BEST_SPEED
- )
+ request.body = Appsignal::Utils::Gzip.compress \
+ Appsignal::Utils::JSON.generate(payload)
end
end
def http_client
client = if config[:http_proxy]