From e87dcbbcdb334a472bcfca973ce84672cee17292 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Wed, 6 Mar 2024 19:57:17 +0100 Subject: [PATCH] Add Accept header for github revoke token Signed-off-by: Carlos Tadeu Panato Junior --- post.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {