Permalink
Browse files

Fix assignee API URLs - remove preceding slash.

  • Loading branch information...
Owain R Hunt
Owain R Hunt committed Aug 1, 2012
1 parent e995f26 commit 2a3470cb91255a68e69765ee6a9a6e289a951c3b
Showing with 2 additions and 2 deletions.
  1. +2 −2 UAGithubEngine/UAGithubEngine.m
@@ -565,13 +565,13 @@ - (void)deleteIssue:(NSInteger)issueNumber inRepository:(NSString *)repositoryPa
- (void)assigneesForRepository:(NSString *)repositoryPath success:(UAGithubEngineSuccessBlock)successBlock failure:(UAGithubEngineFailureBlock)failureBlock
{
- [self invoke:^(id self) { [self sendRequest:[NSString stringWithFormat:@"/repos/%@/assignees", repositoryPath] requestType:UAGithubAssigneesRequest responseType:UAGithubUsersResponse error:nil];} success:successBlock failure:failureBlock];
+ [self invoke:^(id self) { [self sendRequest:[NSString stringWithFormat:@"repos/%@/assignees", repositoryPath] requestType:UAGithubAssigneesRequest responseType:UAGithubUsersResponse error:nil];} success:successBlock failure:failureBlock];
}
- (void)user:(NSString *)user isAssigneeForRepository:(NSString *)repositoryPath success:(UAGithubEngineBooleanSuccessBlock)successBlock failure:(UAGithubEngineFailureBlock)failureBlock
{
- [self invoke:^(id self){[self sendRequest:[NSString stringWithFormat:@"/repos/%@/assignees/%@", repositoryPath, user] requestType:UAGithubAssigneeRequest responseType:UAGithubNoContentResponse error:nil];} booleanSuccess:successBlock failure:failureBlock];
+ [self invoke:^(id self){[self sendRequest:[NSString stringWithFormat:@"repos/%@/assignees/%@", repositoryPath, user] requestType:UAGithubAssigneeRequest responseType:UAGithubNoContentResponse error:nil];} booleanSuccess:successBlock failure:failureBlock];
}

0 comments on commit 2a3470c

Please sign in to comment.