diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-13 12:27:37 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-13 12:27:37 -0700 |
commit | 24eefdbf89c332bde5853531fdd86f5f015d3dcd (patch) | |
tree | 5a31481b232fd99ee8183dc68a20cb4b8e5abebb /lib/chef/http | |
parent | bb0dd117d50dd5b175387b753ce54b3ef6421017 (diff) | |
download | chef-24eefdbf89c332bde5853531fdd86f5f015d3dcd.tar.gz |
Fix duplicated query parameters
rubocop rule led to us mutating the argument to the constructor here
and continuously appending query params.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/http')
-rw-r--r-- | lib/chef/http/http_request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/http/http_request.rb b/lib/chef/http/http_request.rb index 9ee519c8ac..c38ac08133 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).to_s + req_path = path.to_s.dup req_path << "?#{query}" if query @http_request = case method.to_s.downcase |