smh derpy

This commit is contained in:
Wessel Tip
2019-04-11 19:42:28 +02:00
parent e9a3bab7c8
commit 84b1206398
2 changed files with 2 additions and 2 deletions

View File

@@ -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})`;

View File

@@ -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') {