lib/httpx/request.rb in httpx-0.18.2 vs lib/httpx/request.rb in httpx-0.18.3
- old
+ new
@@ -283,10 +283,10 @@
def initialize(block)
@block = block
end
def write(data)
- @block.call(data)
+ @block.call(data.dup)
data.bytesize
end
end
end
end