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.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/http/uploads.go b/service/http/uploads.go
index 15522503..39a9eaf2 100644
--- a/service/http/uploads.go
+++ b/service/http/uploads.go
@@ -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