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.0" have entirely different histories.

3 changed files with 4 additions and 6 deletions

View File

@ -280,7 +280,7 @@ function setDefaults(defs) {
var requester;
if (opts.body) {
if (true === opts.json && 'string' !== typeof opts.body) {
if (true === opts.json) {
_body = JSON.stringify(opts.body);
} else {
_body = opts.body;
@ -324,9 +324,7 @@ function setDefaults(defs) {
'timeout',
'setHost'
].forEach(function (key) {
if (key in opts) {
finalOpts[key] = opts[key];
}
finalOpts[key] = opts.uri[key];
});
finalOpts.method = opts.method;

2
package-lock.json generated
View File

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

View File

@ -1,6 +1,6 @@
{
"name": "@root/request",
"version": "1.8.2",
"version": "1.8.0",
"description": "A lightweight, zero-dependency drop-in replacement for request",
"main": "index.js",
"files": [