lib/http_crawler/client.rb in http_crawler-0.3.1.3 vs lib/http_crawler/client.rb in http_crawler-0.3.1.4

- old
+ new

@@ -253,10 +253,10 @@ # 初始化一些 client 自定义参数 init_client # 初始化 代理参数 - @proxy_params = {key: "#{self.class.gsub(":","_")}"} + @proxy_params = {key: "#{self.class.to_s.gsub(":","_")}"} end # 发送 get 请求 def get(path, params = {}) raise "Client uri为空" unless self.uri