From 39b7da9bbaa4d0dd77b2592e8ed71f631cd0ac0e Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sun, 28 Feb 2021 21:18:02 -0600 Subject: Update constants.js --- build/constants.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/constants.js b/build/constants.js index 9231784..8300e52 100644 --- a/build/constants.js +++ b/build/constants.js @@ -46,7 +46,10 @@ const fileCache = new node_cache_1.default({ async function fetchFile(path) { if (fileCache.has(path)) return fileCache.get(path); - const r = await fetchGithubApi('GET', `/repos/${owner}/${repo}/contents/${path}`, { 'Accept': 'application/vnd.github.v3+json' }); + const r = await fetchGithubApi('GET', `/repos/${owner}/${repo}/contents/${path}`, { + 'Accept': 'application/vnd.github.v3+json', + 'Authorization': undefined + }); const data = await r.json(); return { path: data.path, -- cgit