Skip to content

Commit

Permalink
fix user agent headers
Browse files Browse the repository at this point in the history
  • Loading branch information
busma13 committed Aug 1, 2024
1 parent a142c72 commit 1caf6fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function getRequestOptions(urlString: string) {
const url = URL.parse(urlString);
const headers: Record<string, string> = {
Accept: 'application/octet-stream',
UserAgent: '@terascope/fetch-github-release',
'User-Agent': '@terascope/fetch-github-release',
};

if (GITHUB_TOKEN) {
Expand Down
2 changes: 1 addition & 1 deletion src/getReleases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export async function getReleases(user: string, repo: string): Promise<GithubRel

const requestConfig: OptionsOfJSONResponseBody = {
headers: {
UserAgent: '@terascope/fetch-github-release'
'User-Agent': '@terascope/fetch-github-release'
} as Record<string, string>,
responseType: 'json'
};
Expand Down

0 comments on commit 1caf6fc

Please sign in to comment.