2
0
mirror of https://git.coolaj86.com/coolaj86/request.js synced 2025-04-21 23:00:36 +00:00

Compare commits

..

No commits in common. "master" and "v1.8.1" have entirely different histories.

3 changed files with 3 additions and 5 deletions

View File

@ -324,9 +324,7 @@ function setDefaults(defs) {
'timeout', 'timeout',
'setHost' 'setHost'
].forEach(function (key) { ].forEach(function (key) {
if (key in opts) { finalOpts[key] = opts.uri[key];
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.2", "version": "1.8.1",
"lockfileVersion": 1 "lockfileVersion": 1
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "@root/request", "name": "@root/request",
"version": "1.8.2", "version": "1.8.1",
"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": [