mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 11:24:44 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user