From 263a769ee090d0c3f27bcbdaa3aaec1cdf74792d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=A3=E5=B2=AD=E6=B1=A0?= Date: Thu, 10 Sep 2020 16:55:15 +0800 Subject: [PATCH] update nexus url. --- lib/cocoapods-nexus/api/connection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,