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); } ///