Browse Source

tiny fix for consistency

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

2
index.js

@ -207,7 +207,7 @@ function got(url, opts, cb) {
got[el] = function (url, opts, cb) {
if (typeof opts === 'function') {
cb = opts;
opts = undefined;
opts = {};
}
return got(url, objectAssign({}, opts, {method: el.toUpperCase()}), cb);

Loading…
Cancel
Save