lib/atol/request/get_token.rb in atol-0.1.2 vs lib/atol/request/get_token.rb in atol-0.2

- old
+ new

@@ -26,10 +26,12 @@ def call uri = URI(Atol::URL + PATH) uri.query = URI.encode_www_form(login: login, pass: password) - Net::HTTP.get_response(uri) + http = Net::HTTP.new(uri.host, uri.port) + http.use_ssl = true + http.get(uri.request_uri) end private attr_reader :login, :password