Skip to content

Commit 9db2577

Browse files
committed
feat: reuse github headers for token validation
1 parent 6a7a31a commit 9db2577

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scripts/github.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,8 @@ export default class GitHub {
155155
'access_token': token,
156156
}),
157157
headers: {
158+
...this.headers,
158159
Authorization: `Basic ${globalThis.btoa(`${this.clientID}:${this.clientSecret}`)}`,
159-
Accept: 'application/vnd.github+json',
160-
'X-GitHub-Api-Version': '2022-11-28',
161160
},
162161
});
163162
if(method == "POST") {

0 commit comments

Comments
 (0)