summaryrefslogtreecommitdiff
path: root/lib/chef/http
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-07-02 10:32:45 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-07-02 10:32:45 -0700
commit0bdd618fc5146dad3fa5a90d10a4b5e608e4663d (patch)
tree54e82256ba2c4d10f6a67164222ae46010e324f4 /lib/chef/http
parentcdad2f684debda15e8cf773185e78f93892eda35 (diff)
downloadchef-0bdd618fc5146dad3fa5a90d10a4b5e608e4663d.tar.gz
fix Style/UnneededInterpolation
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/http')
-rw-r--r--lib/chef/http/auth_credentials.rb2
-rw-r--r--lib/chef/http/http_request.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/http/auth_credentials.rb b/lib/chef/http/auth_credentials.rb
index e84f6a0c5b..547b5c8a83 100644
--- a/lib/chef/http/auth_credentials.rb
+++ b/lib/chef/http/auth_credentials.rb
@@ -51,7 +51,7 @@ class Chef
sign_obj = Mixlib::Authentication::SignedHeaderAuth.signing_object(request_params)
signed = sign_obj.sign(key, use_ssh_agent: @use_ssh_agent).merge({ host: host })
- signed.inject({}) { |memo, kv| memo["#{kv[0].to_s.upcase}"] = kv[1]; memo }
+ signed.inject({}) { |memo, kv| memo[(kv[0].to_s.upcase).to_s] = kv[1]; memo }
end
end
diff --git a/lib/chef/http/http_request.rb b/lib/chef/http/http_request.rb
index 475043bdb4..774419a58c 100644
--- a/lib/chef/http/http_request.rb
+++ b/lib/chef/http/http_request.rb
@@ -152,7 +152,7 @@ class Chef
end
def configure_http_request(request_body = nil)
- req_path = "#{path}"
+ req_path = (path).to_s
req_path << "?#{query}" if query
@http_request = case method.to_s.downcase