Skip to content

Commit

Permalink
fix: fix support for some legacy registry servers (#5609)
Browse files Browse the repository at this point in the history
Some registry servers do not recognize `application/vnd.npm.install-v1+json`
in the Accept header, so here we add `application/json` as fallback.
  • Loading branch information
sodatea committed Jun 24, 2020
1 parent f6e9b94 commit 09cdf51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli/lib/util/ProjectPackageManager.js
Expand Up @@ -248,7 +248,7 @@ class PackageManager {

const headers = {}
if (!full) {
headers.Accept = 'application/vnd.npm.install-v1+json'
headers.Accept = 'application/vnd.npm.install-v1+json;q=1.0, application/json;q=0.9, */*;q=0.8'
}

if (authToken) {
Expand Down

0 comments on commit 09cdf51

Please sign in to comment.