lib/lol/request.rb in ruby-lol-0.9.19 vs lib/lol/request.rb in ruby-lol-0.9.19.1
- old
+ new
@@ -32,10 +32,10 @@
# Returns a full url for an API call
# @param path [String] API path to call
# @return [String] full fledged url
def api_url path, params = {}
query_string = URI.encode_www_form params.merge api_key: api_key
- File.join "http://#{region}.api.pvp.net/api/lol/#{region}/#{self.class.api_version}/", "#{path}?#{query_string}"
+ File.join "https://#{region}.api.pvp.net/api/lol/#{region}/#{self.class.api_version}/", "#{path}?#{query_string}"
end
# Returns just a path from a full api url
# @return [String]
def clean_url(url)