From 990974ca5cd44df0c77bb6a12fc57a3c32b92e23 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 15 Jan 2019 13:07:58 -0800 Subject: changes for rubocop engine upgrades. this is the result of changes to rules we already previously had enabled. Signed-off-by: Lamont Granquist --- lib/chef/http/socketless_chef_zero_client.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/chef/http/socketless_chef_zero_client.rb') diff --git a/lib/chef/http/socketless_chef_zero_client.rb b/lib/chef/http/socketless_chef_zero_client.rb index 6484a6d540..e3823481d4 100644 --- a/lib/chef/http/socketless_chef_zero_client.rb +++ b/lib/chef/http/socketless_chef_zero_client.rb @@ -163,16 +163,16 @@ class Chef def req_to_rack(method, url, body, headers) body_str = body || "" { - "SCRIPT_NAME" => "", - "SERVER_NAME" => "localhost", - "REQUEST_METHOD" => method.to_s.upcase, - "PATH_INFO" => url.path, - "QUERY_STRING" => url.query, - "SERVER_PORT" => url.port, - "HTTP_HOST" => "localhost:#{url.port}", + "SCRIPT_NAME" => "", + "SERVER_NAME" => "localhost", + "REQUEST_METHOD" => method.to_s.upcase, + "PATH_INFO" => url.path, + "QUERY_STRING" => url.query, + "SERVER_PORT" => url.port, + "HTTP_HOST" => "localhost:#{url.port}", "HTTP_X_OPS_SERVER_API_VERSION" => headers["X-Ops-Server-API-Version"], "rack.url_scheme" => "chefzero", - "rack.input" => StringIO.new(body_str), + "rack.input" => StringIO.new(body_str), } end -- cgit v1.2.1