Skip to content

Commit b97fd2b

Browse files
authored
feat: authenticate fetch requests for higher rate limits (#239)
1 parent c793cfc commit b97fd2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lambda/gist/gist.js

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function matchExpectedFiles(files) {
3939
async function getGist({ id, version }) {
4040
const response = await fetch(
4141
[ENDPOINT, id, version].filter(Boolean).join('/'),
42+
{ headers: { authorization } },
4243
);
4344

4445
const { files } = await response.json();

0 commit comments

Comments
 (0)