lib/httpx/plugins/compression.rb in httpx-0.11.0 vs lib/httpx/plugins/compression.rb in httpx-0.11.1

- old
+ new

@@ -92,10 +92,10 @@ # this can happen if the only declared encoding is "identity" remove_instance_variable(:@_inflaters) if @_inflaters.empty? end def write(chunk) - return super unless defined?(@_inflaters) + return super unless defined?(@_inflaters) && !chunk.empty? chunk = decompress(chunk) super(chunk) end