Browse Source

fix query removal from opts

http2
Vsevolod Strukchinsky 10 years ago
parent
commit
be47ce7168
  1. 2
      index.js

2
index.js

@ -102,7 +102,7 @@ function got(url, opts, cb) {
}
if (query) {
arg.path = (arg.path ? arg.path.split('?')[0] : '') + '?' + (typeof opts.query === 'string' ? opts.query : querystring.stringify(opts.query));
arg.path = (arg.path ? arg.path.split('?')[0] : '') + '?' + (typeof query === 'string' ? query : querystring.stringify(query));
}
var req = fn.request(arg, function (response) {

Loading…
Cancel
Save