Skip to content

Commit 5d8345a

Browse files
committed
Add User-Agent header to GitHub API requests
1 parent 406e3d1 commit 5d8345a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

server/src/lib/github.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export async function fetchGitHubUser(
5858
headers: {
5959
Authorization: `Bearer ${accessToken}`,
6060
Accept: "application/vnd.github+json",
61+
"User-Agent": "sustn-server",
6162
},
6263
});
6364

@@ -75,6 +76,7 @@ export async function fetchGitHubUser(
7576
headers: {
7677
Authorization: `Bearer ${accessToken}`,
7778
Accept: "application/vnd.github+json",
79+
"User-Agent": "sustn-server",
7880
},
7981
},
8082
);

0 commit comments

Comments
 (0)