diff --git a/README.rdoc b/README.rdoc index 36637c3..c50a7dc 100644 --- a/README.rdoc +++ b/README.rdoc @@ -31,11 +31,11 @@ If you are sending params that do not contain a File object but the payload need == Streaming downloads -RestClient.get('http://some/resource/lotsofdata') do |res| - res.read_body do |chunk| - .. do something with chunk .. + RestClient.get('http://some/resource/lotsofdata') do |res| + res.read_body do |chunk| + .. do something with chunk .. + end end -end See RestClient module docs for more details.