From 7c58fa28a7158acefa9d02aa461ec222f060a1d0 Mon Sep 17 00:00:00 2001 From: Haacked Date: Mon, 30 Jun 2014 11:04:27 -0700 Subject: [PATCH] Remove preview accept media type This media type is only needed IF You want to make retrieving statuses available at the endpoint /repos/:owner/:repo/commits/:ref/statuses. But we're not doing that here. --- Octokit/Clients/CommitStatusClient.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Octokit/Clients/CommitStatusClient.cs b/Octokit/Clients/CommitStatusClient.cs index b83743ae..8c580b62 100644 --- a/Octokit/Clients/CommitStatusClient.cs +++ b/Octokit/Clients/CommitStatusClient.cs @@ -38,8 +38,7 @@ namespace Octokit // https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref return ApiConnection.GetAll( ApiUrls.CommitStatus(owner, name, reference), - null, - "application/vnd.github.she-hulk-preview+json"); + null); } /// @@ -61,8 +60,7 @@ namespace Octokit // https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref return ApiConnection.Post( ApiUrls.CommitStatus(owner, name, reference), - commitStatus, - "application/vnd.github.she-hulk-preview+json"); + commitStatus); } } }