Skip to content

Commit

Permalink
feat: allow fallback to application/json for custom registries (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
stramel authored Oct 19, 2023
1 parent 2533d12 commit 92f8e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/npmRegistryUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as httpUtils from './httpUtils';
// load abbreviated metadata as that's all we need for these calls
// see: https://github.com/npm/registry/blob/cfe04736f34db9274a780184d1cdb2fb3e4ead2a/docs/responses/package-metadata.md
export const DEFAULT_HEADERS: OutgoingHttpHeaders = {
[`Accept`]: `application/vnd.npm.install-v1+json`,
[`Accept`]: `application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8`,
};
export const DEFAULT_NPM_REGISTRY_URL = `https://registry.npmjs.org`;

Expand Down

0 comments on commit 92f8e71

Please sign in to comment.