remove deprecated functions and fix corresponding unit test cases

This commit is contained in:
John
2019-09-06 16:59:38 +08:00
parent 0d5dfe59b9
commit 13e528abb6
21 changed files with 57 additions and 57 deletions

View File

@ -13,7 +13,7 @@ func Upload(r *ghttp.Request) {
name := gfile.Basename(h.Filename)
buffer := make([]byte, h.Size)
f.Read(buffer)
gfile.PutBinContents("/tmp/"+name, buffer)
gfile.PutBytes("/tmp/"+name, buffer)
r.Response.Write(name + " uploaded successly")
} else {
r.Response.Write(e.Error())