hof 21.0.4-axios-beta → 21.0.5-axios-beta
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,6 @@ const url = require('url');
|
|
4
4
|
module.exports = (settings, body) => {
|
5
5
|
return Object.assign({}, settings, {
|
6
6
|
'url' : settings.uri || settings.url || url.format(settings),
|
7
|
-
'data': settings.body || body || settings.data
|
8
|
-
'responseType': 'arraybuffer'
|
7
|
+
'data': settings.body || body || settings.data
|
9
8
|
});
|
10
9
|
}
|
@@ -9,7 +9,8 @@ module.exports = class PDFModel extends Model {
|
|
9
9
|
const settings = super.requestConfig(options);
|
10
10
|
settings.encoding = null;
|
11
11
|
settings.rejectUnauthorized = false;
|
12
|
-
|
12
|
+
settings.responseType = 'arraybuffer';
|
13
|
+
console.log("settings------+_+_+_+_---------: ", settings);
|
13
14
|
return settings;
|
14
15
|
}
|
15
16
|
|