Skip to content

Commit

Permalink
Remove unnecessary GitHub API preview accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
deiwin committed May 2, 2018
1 parent c4c19fa commit 611cd47
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
*/
public class ExtendedPullRequestService extends PullRequestService {

private static final String BLACK_CAT_PREVIEW = "application/vnd.github.black-cat-preview+json";

public ExtendedPullRequestService(final ExtendedGitHubClient client) {
super(client);
}
Expand Down Expand Up @@ -166,7 +164,6 @@ public PageIterator<User> pageRequestedReviewers(final IRepositoryIdProvider rep
uri.append("/requested_reviewers");

PagedRequest<User> request = this.createPagedRequest(1, 100);
request.setResponseContentType(BLACK_CAT_PREVIEW);
request.setUri(uri);
request.setType((new TypeToken<List<User>>(){}).getType());
return this.createPageIterator(request);
Expand All @@ -186,7 +183,7 @@ public void createReviewRequests(final IRepositoryIdProvider repository,

Map<String, Object> params = new HashMap<>();
params.put("reviewers", reviewers);
getClient().post(uri.toString(), params, ExtendedPullRequest.class, BLACK_CAT_PREVIEW);
getClient().post(uri.toString(), params, ExtendedPullRequest.class);
}

public void deleteReviewRequests(final IRepositoryIdProvider repository,
Expand All @@ -203,6 +200,6 @@ public void deleteReviewRequests(final IRepositoryIdProvider repository,

Map<String, Object> params = new HashMap<>();
params.put("reviewers", reviewers);
getClient().delete(uri.toString(), params, BLACK_CAT_PREVIEW);
getClient().delete(uri.toString(), params);
}
}

0 comments on commit 611cd47

Please sign in to comment.