Compare commits

..

2 Commits

Author SHA1 Message Date
AJ ONeal bb30d5acf6
1.8.2 2022-06-14 01:37:28 -06:00
AJ ONeal 5b539deb7b
fix: copy http options from opts (not opts.uri) 2022-06-14 01:24:50 -06:00
3 changed files with 5 additions and 3 deletions

View File

@ -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;

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{ {
"name": "@root/request", "name": "@root/request",
"version": "1.8.1", "version": "1.8.2",
"lockfileVersion": 1 "lockfileVersion": 1
} }

View File

@ -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": [