summaryrefslogtreecommitdiff
path: root/service/http/uploads.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/http/uploads.go')
-rw-r--r--service/http/uploads.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/service/http/uploads.go b/service/http/uploads.go
index 8a46f230..39a9eaf2 100644
--- a/service/http/uploads.go
+++ b/service/http/uploads.go
@@ -1,8 +1,8 @@
package http
import (
- "encoding/json"
"fmt"
+ json "github.com/json-iterator/go"
"github.com/sirupsen/logrus"
"io"
"io/ioutil"
@@ -42,7 +42,8 @@ type Uploads struct {
// MarshalJSON marshal tree tree into JSON.
func (u *Uploads) MarshalJSON() ([]byte, error) {
- return json.Marshal(u.tree)
+ j := json.ConfigCompatibleWithStandardLibrary
+ return j.Marshal(u.tree)
}
// Open moves all uploaded files to temp directory, return error in case of issue with temp directory. File errors