hof 21.0.2-axios-beta → 21.0.4-axios-beta
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,10 @@
|
|
1
1
|
'use strict';
|
2
2
|
const url = require('url');
|
3
3
|
|
4
|
-
module.exports = (settings, body)=>{
|
4
|
+
module.exports = (settings, body) => {
|
5
5
|
return Object.assign({}, settings, {
|
6
6
|
'url' : settings.uri || settings.url || url.format(settings),
|
7
7
|
'data': settings.body || body || settings.data,
|
8
|
+
'responseType': 'arraybuffer'
|
8
9
|
});
|
9
10
|
}
|
package/model/index.js
CHANGED
@@ -137,7 +137,7 @@ module.exports = class Model extends EventEmitter {
|
|
137
137
|
resolve(data);
|
138
138
|
}
|
139
139
|
};
|
140
|
-
console.log("settings
|
140
|
+
console.log("settings---------------: ", settings);
|
141
141
|
this._request(settings)
|
142
142
|
.then(response => {
|
143
143
|
return this.handleResponse(response, (error, data, status) => {
|