lib/httpx/plugins/compression/gzip.rb in httpx-0.12.0 vs lib/httpx/plugins/compression/gzip.rb in httpx-0.13.0
- old
+ new
@@ -8,11 +8,11 @@
module GZIP
def self.load_dependencies(*)
require "zlib"
end
- def self.configure(*)
- Compression.register "gzip", self
+ def self.configure(klass)
+ klass.default_options.encodings.register "gzip", self
end
class Deflater
def initialize
@compressed_chunk = "".b