Skip to content

Commit 92f8e71

Browse files
authored
feat: allow fallback to application/json for custom registries (#314)
1 parent 2533d12 commit 92f8e71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/npmRegistryUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as httpUtils from './httpUtils';
66
// load abbreviated metadata as that's all we need for these calls
77
// see: https://github.com/npm/registry/blob/cfe04736f34db9274a780184d1cdb2fb3e4ead2a/docs/responses/package-metadata.md
88
export const DEFAULT_HEADERS: OutgoingHttpHeaders = {
9-
[`Accept`]: `application/vnd.npm.install-v1+json`,
9+
[`Accept`]: `application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8`,
1010
};
1111
export const DEFAULT_NPM_REGISTRY_URL = `https://registry.npmjs.org`;
1212

0 commit comments

Comments
 (0)