adamwiggins/rest-client

RestClient doesn't fully support Net:HTTP streaming on POSTs and PUTs

Closed this issue · 2 comments

The problem is that all requests receive the payload in the http.request(...) method. When the payload is a stream or file object, the requests #body_stream should be set and payload should become nil. I've uploaded a Gist patch to fix it (and the subsequent call to #request_log which expects payload to respond to #size): http://gist.github.com/399154/67ff78d130a3d061bddc01f776213faecb37313c.

the project moved to archiloque/rest-client, could you reopen this issue there ?

Thanks. Will do.