summaryrefslogtreecommitdiff
path: root/lib/chef/http.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-12 09:32:14 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-12 09:32:14 -0800
commit03eadde04eb219bfa8abe52d312261a5142e7266 (patch)
treeb0864a3e70741f5a15f0337824f25b69fc319c07 /lib/chef/http.rb
parent1e324f073455db7596f37da6bf21b2f6521529ce (diff)
downloadchef-03eadde04eb219bfa8abe52d312261a5142e7266.tar.gz
pull rubocop 0.37.2 into chefstyle
this is from the same ruleset that we had, but the new code catches more conditions.
Diffstat (limited to 'lib/chef/http.rb')
-rw-r--r--lib/chef/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/http.rb b/lib/chef/http.rb
index 0060fb08c7..9cd55f18dd 100644
--- a/lib/chef/http.rb
+++ b/lib/chef/http.rb
@@ -383,7 +383,7 @@ class Chef
end
def build_headers(method, url, headers = {}, json_body = false)
- headers = @default_headers.merge(headers)
+ headers = @default_headers.merge(headers)
headers["Content-Length"] = json_body.bytesize.to_s if json_body
headers.merge!(Chef::Config[:custom_http_headers]) if Chef::Config[:custom_http_headers]
headers