mirror of
https://github.com/Wessel/wumpfetch.git
synced 2026-07-28 02:50:53 +02:00
Fixed a fix
This commit is contained in:
@@ -151,13 +151,16 @@ module.exports = class WumpRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
req.on('error', (e) => reject(e));
|
req.on('error', (e) => reject(e));
|
||||||
if (this.o.SDA === 'json') {
|
|
||||||
req.write(JSON.stringify(this.o.data));
|
if (this.o.data) {
|
||||||
} else {
|
if (this.o.SDA === 'json') {
|
||||||
if (typeof this.o.data === 'object') {
|
|
||||||
req.write(JSON.stringify(this.o.data));
|
req.write(JSON.stringify(this.o.data));
|
||||||
} else {
|
} else {
|
||||||
req.write(this.o.data);
|
if (typeof this.o.data === 'object') {
|
||||||
|
req.write(JSON.stringify(this.o.data));
|
||||||
|
} else {
|
||||||
|
req.write(this.o.data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "wumpfetch",
|
"name": "wumpfetch",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"description": "🚀 A lightweight and fast Node.js HTTP Client",
|
"description": "🚀 A lightweight and fast Node.js HTTP Client",
|
||||||
"author": "Wessel \"wesselgame\" T <discord@go2it.eu>",
|
"author": "Wessel \"wesselgame\" T <discord@go2it.eu>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
Reference in New Issue
Block a user