hof 21.0.7-axios-beta → 21.0.8-axios-beta
Sign up to get free protection for your applications and to get access to all the features.
- package/model/index.js +4 -0
- package/package.json +1 -1
package/model/index.js
CHANGED
@@ -48,6 +48,7 @@ module.exports = class Model extends EventEmitter {
|
|
48
48
|
|
49
49
|
reqConf.headers = Object.assign({
|
50
50
|
'Content-Type': 'application/json',
|
51
|
+
'User-Agent': 'Axios 0.25.0',
|
51
52
|
'Content-Length': Buffer.byteLength(data)
|
52
53
|
}, reqConf.headers || {});
|
53
54
|
return this.request(reqConf, data, callback);
|
@@ -142,6 +143,9 @@ module.exports = class Model extends EventEmitter {
|
|
142
143
|
this.emit('success', data, originalSettings, statusCode, responseTime);
|
143
144
|
}
|
144
145
|
if (err) {
|
146
|
+
console.log("err11")
|
147
|
+
console.log(err)
|
148
|
+
console.log("err11")
|
145
149
|
reject(err);
|
146
150
|
} else {
|
147
151
|
resolve(data);
|