Module | Net |
In: |
lib/restclient/net_http_ext.rb
|
Replace the request method in Net::HTTP to sniff the body type and set the stream if appropriate
Taken from: www.missiondata.com/blog/ruby/29/streaming-data-to-s3-with-ruby/