From 3abd4be78506cfc12f713ca26150fb09130ed538 Mon Sep 17 00:00:00 2001 From: Kanezoh Date: Mon, 3 May 2021 13:29:55 +0900 Subject: [PATCH] change variable name request to client --- src/mechanize/http/agent.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mechanize/http/agent.cr b/src/mechanize/http/agent.cr index a795c6a..c3b6754 100644 --- a/src/mechanize/http/agent.cr +++ b/src/mechanize/http/agent.cr @@ -21,13 +21,13 @@ module MechanizeCr end 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) case uri.scheme.not_nil!.downcase when "http", "https" then case method when :get - request.get(path, headers: request_headers) + client.get(path, headers: request_headers) end end end