diff --git a/lib/cocoapods-nexus/api/connection.rb b/lib/cocoapods-nexus/api/connection.rb index 681ac0a..06f03c5 100644 --- a/lib/cocoapods-nexus/api/connection.rb +++ b/lib/cocoapods-nexus/api/connection.rb @@ -112,7 +112,7 @@ def authorization_header def send_request(connection_method, endpoint, parameters: '', headers: {}, api_version: 'v1') parameters = parameters.to_json if headers['Content-Type'] == 'application/json' - url = "#{@hostname}/nexus/service/rest/#{api_version}/#{endpoint}" + url = File.join(@hostname,"/nexus/service/rest/#{api_version}/#{endpoint}") catch_connection_error do RestClient::Request.execute( method: connection_method,