aboutsummaryrefslogtreecommitdiff
path: root/build/constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/constants.js')
-rw-r--r--build/constants.js5
1 files changed, 4 insertions, 1 deletions
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,