Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit 0d71d89

Browse files
committed
Accept corgi JSON if available
1 parent c02a5f6 commit 0d71d89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/request.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ function makeRequest (uri, params, cb_) {
111111
// metadata should be compressed
112112
headers['accept-encoding'] = 'gzip'
113113

114+
// metadata should be minified, if the registry supports it
115+
headers['accept'] = 'application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*'
116+
114117
var er = this.authify(params.authed, parsed, headers, params.auth)
115118
if (er) return cb_(er)
116119

0 commit comments

Comments
 (0)