Browse Source

Merge default values in one object

http2
Vsevolod Strukchinsky 9 years ago
parent
commit
001351cb06
  1. 3
      index.js

3
index.js

@ -203,9 +203,8 @@ function normalizeArguments(url, opts) {
}
opts = objectAssign(
{protocol: 'http:', path: ''},
{protocol: 'http:', path: '', retries: 5},
url,
{retries: 5},
opts
);

Loading…
Cancel
Save