mirror of
https://github.com/filegator/filegator.git
synced 2025-08-10 23:44:01 +02:00
disabling axios response auto-transformation when editing content, fixes #110
This commit is contained in:
@@ -193,7 +193,8 @@ const api = {
|
||||
},
|
||||
downloadItem (params) {
|
||||
return new Promise((resolve, reject) => {
|
||||
axios.get('download&path='+encodeURIComponent(Base64.encode(params.path)))
|
||||
axios.get('download&path='+encodeURIComponent(Base64.encode(params.path)),
|
||||
{transformResponse : undefined})
|
||||
.then(res => resolve(res.data))
|
||||
.catch(error => reject(error))
|
||||
})
|
||||
|
Reference in New Issue
Block a user