mirror of
https://github.com/Wessel/wumpfetch.git
synced 2026-07-15 13:03:36 +02:00
set chaining's default to true
This commit is contained in:
@@ -5,8 +5,8 @@ console.log(`Using wumpfetch v${wump.version} [${wump.userAgent}]\n\n`);
|
||||
|
||||
;(async() => {
|
||||
const requests = [
|
||||
await wump({ url: 'https://jsonplaceholder.typicode.com/todos/1', parse: 'json', chaining: true }).send(),
|
||||
await wump('https://jsonplaceholder.typicode.com/todos/1')
|
||||
await wump({ url: 'https://jsonplaceholder.typicode.com/todos/1', parse: 'json' }).send(),
|
||||
await wump('https://jsonplaceholder.typicode.com/todos/1', { chaining: false })
|
||||
];
|
||||
|
||||
console.log(`Test 1: \n${util.inspect(requests[0].body)}\n\n`);
|
||||
|
||||
Reference in New Issue
Block a user