diff options
author | Adam Jacob <adam@hjksolutions.com> | 2008-08-16 23:48:44 -0700 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2008-08-16 23:48:44 -0700 |
commit | 1baf929ee98799747cedc275e511bf445792e77a (patch) | |
tree | e72487c29940a222a740db1c0b2b62b6d4c15747 /lib/chef/rest.rb | |
parent | cbfa29a274c1defe36c218d12b70b70e640f7069 (diff) | |
download | chef-1baf929ee98799747cedc275e511bf445792e77a.tar.gz |
Adding remote_file and remote_directory support
Diffstat (limited to 'lib/chef/rest.rb')
-rw-r--r-- | lib/chef/rest.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/rest.rb b/lib/chef/rest.rb index d4630c3e8c..9e59d8fbf7 100644 --- a/lib/chef/rest.rb +++ b/lib/chef/rest.rb @@ -119,14 +119,14 @@ class Chef else if raw tf = Tempfile.new("chef-rest") - tf.puts(res.body) + tf.print(res.body) tf.close tf else res.body end end - elsif res.kind_of?(Net::HTTPRedirection) + elsif res.kind_of?(Net::HTTPFound) if res['set-cookie'] @cookies["#{url.host}:#{url.port}"] = res['set-cookie'] end |