Update utils.js
This commit is contained in:
parent
be8bb3804a
commit
570696964b
14
src/utils.js
14
src/utils.js
|
@ -266,6 +266,20 @@ utils.getUTCDate = function (d = null) {
|
|||
}
|
||||
|
||||
utils.parseResponse = async (item, response, config) => {
|
||||
if (config.debug) {
|
||||
console.log(
|
||||
'Response:',
|
||||
JSON.stringify(
|
||||
{
|
||||
headers: response.headers,
|
||||
data: response.data.toString()
|
||||
},
|
||||
null,
|
||||
2
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
const data = merge(item, config, {
|
||||
content: response.data.toString(),
|
||||
buffer: response.data,
|
||||
|
|
Loading…
Reference in New Issue