Skip to content

Commit

Permalink
allow deflater bodies to rewind
Browse files Browse the repository at this point in the history
  • Loading branch information
HoneyryderChuck committed Nov 27, 2024
1 parent b7b63c4 commit 3217fc0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/httpx/transcoder/utils/deflater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ def close
@closed = true
end

def rewind
return unless @buffer

@buffer.rewind
end

private

# rubocop:disable Naming/MemoizedInstanceVariableName
Expand Down

0 comments on commit 3217fc0

Please sign in to comment.