lib/mockserver-client/api_client.rb in mockserver-client-2-5.3.6 vs lib/mockserver-client/api_client.rb in mockserver-client-2-5.3.7
- old
+ new
@@ -261,10 +261,11 @@
end
def build_request_url(path)
# Add leading and trailing slashes to path
path = "/#{path}".gsub(/\/+/, '/')
- ERB::Util.url_encode(@config.base_url + path)
+ # ERB::Util.url_encode(@config.base_url + path)
+ URI.encode_www_form_component(@config.base_url + path)
end
# Builds the HTTP request body
#
# @param [Hash] header_params Header parameters