summaryrefslogtreecommitdiff
path: root/lib/chef/rest.rb
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-05-28 14:52:43 -0700
committersersut <serdar@opscode.com>2013-05-30 13:44:50 -0700
commitaeee4bf96582769207780311b7b882c387656567 (patch)
tree7b4f639d6db0e6bafe17fd511d02239022a7a2e4 /lib/chef/rest.rb
parentf5128d2290b5bb7646f97e61e246b7b09a848a1b (diff)
downloadchef-aeee4bf96582769207780311b7b882c387656567.tar.gz
Remove binmode property from file / remote_directory resources and always operate in binmode.
Diffstat (limited to 'lib/chef/rest.rb')
-rw-r--r--lib/chef/rest.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/rest.rb b/lib/chef/rest.rb
index 931f94ef79..37502d44e5 100644
--- a/lib/chef/rest.rb
+++ b/lib/chef/rest.rb
@@ -374,7 +374,7 @@ class Chef
def stream_to_tempfile(url, response)
tf = Tempfile.open("chef-rest")
if Chef::Platform.windows?
- tf.binmode #required for binary files on Windows platforms
+ tf.binmode # required for binary files on Windows platforms
end
Chef::Log.debug("Streaming download from #{url.to_s} to tempfile #{tf.path}")
# Stolen from http://www.ruby-forum.com/topic/166423