lib/httpx/plugins/compression/deflate.rb in httpx-0.12.0 vs lib/httpx/plugins/compression/deflate.rb in httpx-0.13.0
- old
+ new
@@ -8,11 +8,11 @@
require "stringio"
require "zlib"
klass.plugin(:"compression/gzip")
end
- def self.configure(*)
- Compression.register "deflate", self
+ def self.configure(klass)
+ klass.default_options.encodings.register "deflate", self
end
module Deflater
module_function