Skip to content

Commit 3ee1876

Browse files
committed
Remove mediaTypeGraphQLNodeIDPreview from custom accept headers for DownloadReleaseAsset()
Fixes google#870
1 parent 8eefe6b commit 3ee1876

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎github/repos_releases.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ func (s *RepositoriesService) DownloadReleaseAsset(ctx context.Context, owner, r
253253
}
254254

255255
// TODO: remove custom Accept header when APIs fully launch.
256-
acceptHeaders := []string{defaultMediaType, mediaTypeGraphQLNodeIDPreview}
256+
acceptHeaders := []string{defaultMediaType}
257257
req.Header.Set("Accept", strings.Join(acceptHeaders, ", "))
258258

259259
s.client.clientMu.Lock()

0 commit comments

Comments
 (0)