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