diff --git a/lib/httpx/transcoder/utils/deflater.rb b/lib/httpx/transcoder/utils/deflater.rb index 1e6d360b..44b892ca 100644 --- a/lib/httpx/transcoder/utils/deflater.rb +++ b/lib/httpx/transcoder/utils/deflater.rb @@ -48,6 +48,12 @@ def close @closed = true end + def rewind + return unless @buffer + + @buffer.rewind + end + private # rubocop:disable Naming/MemoizedInstanceVariableName