diff options
Diffstat (limited to 'lib/chef/http/json_input.rb')
-rw-r--r-- | lib/chef/http/json_input.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/http/json_input.rb b/lib/chef/http/json_input.rb index f7204d4ccc..fa7bc9c196 100644 --- a/lib/chef/http/json_input.rb +++ b/lib/chef/http/json_input.rb @@ -33,7 +33,7 @@ class Chef def handle_request(method, url, headers = {}, data = false) if data && should_encode_as_json?(headers) - headers.delete_if { |key, _value| key.casecmp("content-type") == 0 } + headers.delete_if do |key, _value| key.casecmp("content-type") == 0 end headers["Content-Type"] = "application/json" json_opts = {} json_opts[:validate_utf8] = opts[:validate_utf8] if opts.key?(:validate_utf8) |