mirror of
https://github.com/therootcompany/request.js.git
synced 2024-11-16 17:28:58 +00:00
Compare commits
2 Commits
bc4f6e59c0
...
0a2e7afa76
Author | SHA1 | Date | |
---|---|---|---|
0a2e7afa76 | |||
ba60df7eab |
2
index.js
2
index.js
@ -280,7 +280,7 @@ function setDefaults(defs) {
|
||||
var requester;
|
||||
|
||||
if (opts.body) {
|
||||
if (true === opts.json) {
|
||||
if (true === opts.json && 'string' !== typeof opts.body) {
|
||||
_body = JSON.stringify(opts.body);
|
||||
} else {
|
||||
_body = opts.body;
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@root/request",
|
||||
"version": "1.8.0",
|
||||
"version": "1.8.1",
|
||||
"lockfileVersion": 1
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@root/request",
|
||||
"version": "1.8.0",
|
||||
"version": "1.8.1",
|
||||
"description": "A lightweight, zero-dependency drop-in replacement for request",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user