Skip to content

Commit 606099b

Browse files
committed
Remove api-version stuff
1 parent 4ddf6be commit 606099b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/caching/github-actions-cache.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,7 @@ export class GitHubActionsCache implements Cache {
448448
return request(url, {
449449
...options,
450450
headers: {
451-
// https://github.com/actions/toolkit/blob/500d0b42fee2552ae9eeb5933091fe2fbf14e72d/packages/cache/src/internal/cacheHttpClient.ts#L55
452-
// TODO(aomarks) What's the right new accept for v2?
453-
accept: 'application/json;api-version=6.0-preview.1',
451+
accept: 'application/json',
454452
// https://github.com/actions/toolkit/blob/500d0b42fee2552ae9eeb5933091fe2fbf14e72d/packages/http-client/src/auth.ts#L46
455453
authorization: `Bearer ${this.#authToken}`,
456454
...options?.headers,

0 commit comments

Comments
 (0)