summaryrefslogtreecommitdiff
path: root/lib/chef/resource/http_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/http_request.rb')
-rw-r--r--lib/chef/resource/http_request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/http_request.rb b/lib/chef/resource/http_request.rb
index 6c890f2149..f209e419dd 100644
--- a/lib/chef/resource/http_request.rb
+++ b/lib/chef/resource/http_request.rb
@@ -33,7 +33,7 @@ class Chef
allowed_actions :get, :patch, :put, :post, :delete, :head, :options
property :url, String, identity: true
- property :headers, Hash, default: {}
+ property :headers, Hash, default: lazy { Hash.new }
def initialize(name, run_context = nil)
super