mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-22 14:43:10 +00:00
Better Error Handling during Upload Failure and Setting Max File Length to Infinity
This commit is contained in:
parent
8da05fe6f9
commit
f5cade95e4
@ -29,9 +29,12 @@ module.exports = async (query, request) => {
|
||||
'Content-Length': String(query.songFile.size),
|
||||
},
|
||||
data: query.songFile.data,
|
||||
maxContentLength: Infinity,
|
||||
maxBodyLength: Infinity,
|
||||
})
|
||||
} catch (error) {
|
||||
console.log('error', error.response)
|
||||
throw error.response
|
||||
}
|
||||
return {
|
||||
...tokenRes,
|
||||
|
Loading…
x
Reference in New Issue
Block a user