From da4711cf320f471b738d8b02f4956d4b8939f7cb Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Wed, 17 Oct 2018 11:11:46 -0400 Subject: [PATCH] Further cleanup in the DeploymentStatusClient --- Octokit/Clients/DeploymentStatusClient.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Octokit/Clients/DeploymentStatusClient.cs b/Octokit/Clients/DeploymentStatusClient.cs index 5d880a10b6..61735e8d2a 100644 --- a/Octokit/Clients/DeploymentStatusClient.cs +++ b/Octokit/Clients/DeploymentStatusClient.cs @@ -68,7 +68,7 @@ public Task> GetAll(string owner, string name, i return ApiConnection.GetAll(ApiUrls.DeploymentStatuses(owner, name, deploymentId), null, - AcceptHeaders.DeploymentApiPreview, + AcceptHeaders.Concat(AcceptHeaders.DeploymentApiPreview, AcceptHeaders.DeploymentStatusesPreview), options); } @@ -86,7 +86,10 @@ public Task> GetAll(long repositoryId, int deplo { Ensure.ArgumentNotNull(options, nameof(options)); - return ApiConnection.GetAll(ApiUrls.DeploymentStatuses(repositoryId, deploymentId), options); + return ApiConnection.GetAll(ApiUrls.DeploymentStatuses(repositoryId, deploymentId), + null, + AcceptHeaders.Concat(AcceptHeaders.DeploymentApiPreview, AcceptHeaders.DeploymentStatusesPreview), + options); } ///