From e06dbd55db4b4556e144cf8b9366191781441405 Mon Sep 17 00:00:00 2001 From: Ives van Hoorne Date: Tue, 21 Nov 2023 14:25:12 +0000 Subject: [PATCH] fix: type --- packages/git-extractor/src/routes/github/api.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/git-extractor/src/routes/github/api.ts b/packages/git-extractor/src/routes/github/api.ts index 13ea38a0..86869fb6 100644 --- a/packages/git-extractor/src/routes/github/api.ts +++ b/packages/git-extractor/src/routes/github/api.ts @@ -255,6 +255,7 @@ export async function getRepo(username: string, repo: string, token?: string) { }; if (etagCache) { + config.headers = config.headers = {}; config.headers["If-None-Match"] = etagCache.etag; config.validateStatus = function (status: number) { // Axios sees 304 (Not Modified) as an error. We don't want that.