mirror of
https://github.com/Wessel/wumpfetch.git
synced 2026-07-08 06:13:23 +02:00
smh derpy
This commit is contained in:
@@ -15,4 +15,4 @@ common.forEach((v) => {
|
||||
});
|
||||
|
||||
module.exports.version = pkg.version;
|
||||
module.exports.userAgent = `${pkg.name}/${pkg.version} (${pkg.git.repository})`;
|
||||
module.exports.userAgent = `${pkg.name}/${pkg.version} (${pkg.repository.url})`;
|
||||
@@ -91,7 +91,7 @@ module.exports = class WumpRequest {
|
||||
send () {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (this.o.data) {
|
||||
if (!this.o.rHeaders.hasOwnProperty('user-agent')) this.o.rHeaders['User-Agent'] = w.userAgent || `${pkg.name}/${pkg.version} (${pkg.git.repository})`;
|
||||
if (!this.o.rHeaders.hasOwnProperty('user-agent')) this.o.rHeaders['User-Agent'] = w.userAgent || `${pkg.name}/${pkg.version} (${pkg.repository.urll})`;
|
||||
|
||||
if (this.o.SDA === 'json' && !this.o.rHeaders.hasOwnProperty('content-type')) this.o.rHeaders['Content-Type'] = 'application/json';
|
||||
if (this.o.SDA === 'form') {
|
||||
|
||||
Reference in New Issue
Block a user