lib/httpx/transcoder/multipart/encoder.rb in httpx-1.3.2 vs lib/httpx/transcoder/multipart/encoder.rb in httpx-1.3.3

- old
+ new

@@ -16,9 +16,15 @@ def content_type "multipart/form-data; boundary=#{@boundary}" end + def to_s + read + ensure + rewind + end + def read(length = nil, outbuf = nil) data = String(outbuf).clear.force_encoding(Encoding::BINARY) if outbuf data ||= "".b read_chunks(data, length)