Skip to content

Commit aeaa679

Browse files
committed
Revert passing length to buffered body
1 parent d7672e0 commit aeaa679

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/async/http/faraday/adapter.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,7 @@ def perform_request(env)
190190
elsif body.respond_to?(:read)
191191
body = BodyReadWrapper.new(body, content_length)
192192
else
193-
body = ::Protocol::HTTP::Body::Buffered.wrap(body).then do |buffered|
194-
::Protocol::HTTP::Body::Buffered.new(buffered.chunks, content_length)
195-
end
193+
body = ::Protocol::HTTP::Body::Buffered.wrap(body)
196194
end
197195
end
198196

0 commit comments

Comments
 (0)