diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-28 21:18:02 -0600 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-28 21:18:02 -0600 |
commit | 39b7da9bbaa4d0dd77b2592e8ed71f631cd0ac0e (patch) | |
tree | a6f0590f8ce80c19008bbab3d018ac07ba4efa88 /build | |
parent | e88a981598b1375decbd4248cc84e1512ab0e6d1 (diff) | |
download | skyblock-api-39b7da9bbaa4d0dd77b2592e8ed71f631cd0ac0e.tar.gz skyblock-api-39b7da9bbaa4d0dd77b2592e8ed71f631cd0ac0e.tar.bz2 skyblock-api-39b7da9bbaa4d0dd77b2592e8ed71f631cd0ac0e.zip |
Update constants.js
Diffstat (limited to 'build')
-rw-r--r-- | build/constants.js | 5 |
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, |