summaryrefslogtreecommitdiff
path: root/lib/chef/provider/remote_file/http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/remote_file/http.rb')
-rw-r--r--lib/chef/provider/remote_file/http.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/remote_file/http.rb b/lib/chef/provider/remote_file/http.rb
index 86c7b84858..d94c84fa20 100644
--- a/lib/chef/provider/remote_file/http.rb
+++ b/lib/chef/provider/remote_file/http.rb
@@ -65,9 +65,9 @@ class Chef
http = Chef::HTTP::Simple.new(uri, http_client_opts)
orig_tempfile = Chef::FileContentManagement::Tempfile.new(@new_resource).tempfile
if want_progress?
- tempfile = http.streaming_request_with_progress(uri, headers, orig_tempfile) do |size, total|
+ tempfile = http.streaming_request_with_progress(uri, headers, orig_tempfile) { |size, total|
events.resource_update_progress(new_resource, size, total, progress_interval)
- end
+ }
else
tempfile = http.streaming_request(uri, headers, orig_tempfile)
end