mirror of
https://github.com/filegator/filegator.git
synced 2025-08-12 00:34:02 +02:00
do not transform response (json) fixes #201
This commit is contained in:
@@ -195,7 +195,7 @@ const api = {
|
|||||||
return new Promise((resolve, reject) => {
|
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,
|
transformResponse: [data => data],
|
||||||
})
|
})
|
||||||
.then(res => resolve(res.data))
|
.then(res => resolve(res.data))
|
||||||
.catch(error => reject(error))
|
.catch(error => reject(error))
|
||||||
|
Reference in New Issue
Block a user