diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-28 21:17:59 -0600 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-28 21:17:59 -0600 |
commit | e88a981598b1375decbd4248cc84e1512ab0e6d1 (patch) | |
tree | 5cdaeb3b5488761e422aa5e63ce30920c8bd2f59 | |
parent | aad304f3f84aea9a07a9593908476171fd1c850f (diff) | |
download | skyblock-api-e88a981598b1375decbd4248cc84e1512ab0e6d1.tar.gz skyblock-api-e88a981598b1375decbd4248cc84e1512ab0e6d1.tar.bz2 skyblock-api-e88a981598b1375decbd4248cc84e1512ab0e6d1.zip |
don't pass authorization for fetching files
-rw-r--r-- | src/constants.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/constants.ts b/src/constants.ts index 93ef85c..c78b7ea 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -60,7 +60,10 @@ async function fetchFile(path: string): Promise<GithubFile> { const r = await fetchGithubApi( 'GET', `/repos/${owner}/${repo}/contents/${path}`, - { 'Accept': 'application/vnd.github.v3+json' }, + { + 'Accept': 'application/vnd.github.v3+json', + 'Authorization': undefined + }, ) const data = await r.json() return { |