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

Commit 5f27d53

Browse files
committed
Actually send the corgi accepts header
1 parent cdd26ee commit 5f27d53

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/request.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,14 @@ function makeRequest (uri, params, cb_) {
112112
headers['accept-encoding'] = 'gzip'
113113

114114
// 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, */*'
116115

117116
var er = this.authify(params.authed, parsed, headers, params.auth)
118117
if (er) return cb_(er)
119118

120119
var opts = this.initialize(
121120
parsed,
122121
params.method,
123-
'application/json',
122+
'application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*',
124123
headers
125124
)
126125

0 commit comments

Comments
 (0)