lib/allq_rest/configuration.rb in allq_rest-1.2.2 vs lib/allq_rest/configuration.rb in allq_rest-1.2.3

- old
+ new

@@ -8,11 +8,11 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.4.2 =end -require 'uri' +require 'cgi' module Allq class Configuration # Defines url scheme attr_accessor :scheme @@ -173,10 +173,10 @@ @base_path = '' if @base_path == '/' end def base_url url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') - URI.encode(url) + CGI.escape(url) end # Gets API key (with prefix if set). # @param [String] param_name the parameter name of API key auth def api_key_with_prefix(param_name)