Compare commits
2 Commits
0a2e7afa76
...
bb30d5acf6
Author | SHA1 | Date |
---|---|---|
AJ ONeal | bb30d5acf6 | |
AJ ONeal | 5b539deb7b |
4
index.js
4
index.js
|
@ -324,7 +324,9 @@ function setDefaults(defs) {
|
||||||
'timeout',
|
'timeout',
|
||||||
'setHost'
|
'setHost'
|
||||||
].forEach(function (key) {
|
].forEach(function (key) {
|
||||||
finalOpts[key] = opts.uri[key];
|
if (key in opts) {
|
||||||
|
finalOpts[key] = opts[key];
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
finalOpts.method = opts.method;
|
finalOpts.method = opts.method;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "@root/request",
|
"name": "@root/request",
|
||||||
"version": "1.8.1",
|
"version": "1.8.2",
|
||||||
"lockfileVersion": 1
|
"lockfileVersion": 1
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@root/request",
|
"name": "@root/request",
|
||||||
"version": "1.8.1",
|
"version": "1.8.2",
|
||||||
"description": "A lightweight, zero-dependency drop-in replacement for request",
|
"description": "A lightweight, zero-dependency drop-in replacement for request",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
|
Loading…
Reference in New Issue