Fix endpoint URLs for Enterprise support

Since Enterprise base URLs end with /api/v3 we need to make sure
the endpoints are relative and not absolute.
This commit is contained in:
Haacked
2013-10-29 16:00:08 -07:00
parent 0d42e9ca8b
commit 1d64210ac5
21 changed files with 130 additions and 130 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ namespace Octokit
/// </summary>
public class UsersClient : ApiClient, IUsersClient
{
static readonly Uri _userEndpoint = new Uri("/user", UriKind.Relative);
static readonly Uri _userEndpoint = new Uri("user", UriKind.Relative);
public UsersClient(IApiConnection apiConnection) : base(apiConnection)
{
@@ -29,7 +29,7 @@ namespace Octokit
{
Ensure.ArgumentNotNullOrEmptyString(login, "login");
var endpoint = "/users/{0}".FormatUri(login);
var endpoint = "users/{0}".FormatUri(login);
return await ApiConnection.Get<User>(endpoint);
}