diff --git a/post.js b/post.js index 4d9e019..b362a4c 100644 --- a/post.js +++ b/post.js @@ -9,7 +9,10 @@ if (!tok) { try { const res = await fetch('https://api.github.com/installation/token', { method: 'DELETE', - headers: { 'Authorization': `Bearer ${tok}` }, + headers: { + 'Authorization': `Bearer ${tok}`, + 'Accept': 'application/vnd.github+json', + }, }); if (res.status == 204) {