Update Accept header in tree request

Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
Shakar 2023-09-18 15:27:10 +03:00
parent 12a487f9c5
commit 8d082d9bf8
No known key found for this signature in database
GPG Key ID: DA55A26823AE3C28

View File

@ -107,7 +107,6 @@ async function commitChanges(filePath) {
console.log('blobResponse: ' + blobResponse.data)
const newBlobSha = blobResponse.data.sha;
// Create a new tree with the updated blob
const treeResponse = await axios.post(
`https://api.github.com/repos/${owner}/${repo}/git/trees`,
@ -124,7 +123,7 @@ async function commitChanges(filePath) {
},
{
headers: {
'Accept': 'application/vnd.github.v3+json',
'Accept': 'application/vnd.github+json',
'Authorization': `Bearer ${githubToken}`,
},
}