change variable name request to client

master
Kanezoh 2021-05-03 13:29:55 +09:00
parent 224a4f9456
commit 3abd4be785
1 changed files with 2 additions and 2 deletions

View File

@ -21,13 +21,13 @@ module MechanizeCr
end end
def http_request(uri, method, params) def http_request(uri, method, params)
request = ::HTTP::Client.new(uri.host.not_nil!) client = ::HTTP::Client.new(uri.host.not_nil!)
path = compose_path(uri, params) path = compose_path(uri, params)
case uri.scheme.not_nil!.downcase case uri.scheme.not_nil!.downcase
when "http", "https" then when "http", "https" then
case method case method
when :get when :get
request.get(path, headers: request_headers) client.get(path, headers: request_headers)
end end
end end
end end