From c4e3398505aaa188777051c2d5e839b79c53c3e2 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Thu, 20 Feb 2020 16:12:06 -0800 Subject: fix ruby 2.7 URI.unescape deprecation Signed-off-by: Lamont Granquist --- lib/chef/http/http_request.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/chef/http') diff --git a/lib/chef/http/http_request.rb b/lib/chef/http/http_request.rb index 566d05fa84..406cd2df81 100644 --- a/lib/chef/http/http_request.rb +++ b/lib/chef/http/http_request.rb @@ -176,8 +176,8 @@ class Chef @http_request.body = request_body if request_body && @http_request.request_body_permitted? # Optionally handle HTTP Basic Authentication if url.user - user = URI.unescape(url.user) - password = URI.unescape(url.password) if url.password + user = CGI.unescape(url.user) + password = CGI.unescape(url.password) if url.password @http_request.basic_auth(user, password) end -- cgit v1.2.1