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

Commit 137e761

Browse files
committed
Make corgi docs optional
1 parent ee2ad6b commit 137e761

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/request.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,12 @@ function makeRequest (uri, params, cb_) {
116116
var er = this.authify(params.authed, parsed, headers, params.auth)
117117
if (er) return cb_(er)
118118

119+
var useCorgi = params.corgi == null ? true : params.corgi
120+
119121
var opts = this.initialize(
120122
parsed,
121123
params.method,
122-
'application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*',
124+
corgi ? 'application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*' : 'application/json',
123125
headers
124126
)
125127

0 commit comments

Comments
 (0)