mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
Merge pull request #1355 from HEHEHAHAHEIHEI/wk93210/upload_bug_fix
Better Error Handling for Upload Failure and Max Uploading File Length
This commit is contained in:
commit
5942e265bf
@ -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