diff options
author | Valery Piashchynski <[email protected]> | 2020-11-24 15:52:15 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-11-24 15:52:15 +0300 |
commit | be4aadb5384fd8b97c927f3ef48383dc5b23b345 (patch) | |
tree | 0cf046f503ad916af03f7424e7ae0975943da04a /plugins/http/tests/uploads_test.go | |
parent | bc0be9c17220220ae9b40b65e874701edaecd8ce (diff) |
md5 -> sha512
h2c tests
fcgi tests
plugin tests updated
Diffstat (limited to 'plugins/http/tests/uploads_test.go')
-rw-r--r-- | plugins/http/tests/uploads_test.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/http/tests/uploads_test.go b/plugins/http/tests/uploads_test.go index 770e447f..ee244c06 100644 --- a/plugins/http/tests/uploads_test.go +++ b/plugins/http/tests/uploads_test.go @@ -371,11 +371,11 @@ func mustOpen(f string) *os.File { } type fInfo struct { - Name string `json:"name"` - Size int64 `json:"size"` - Mime string `json:"mime"` - Error int `json:"error"` - MD5 string `json:"md5,omitempty"` + Name string `json:"name"` + Size int64 `json:"size"` + Mime string `json:"mime"` + Error int `json:"error"` + Sha512 string `json:"sha512,omitempty"` } func fileString(f string, errNo int, mime string) string { @@ -403,15 +403,15 @@ func fileString(f string, errNo int, mime string) string { } v := &fInfo{ - Name: s.Name(), - Size: s.Size(), - Error: errNo, - Mime: mime, - MD5: hex.EncodeToString(h.Sum(nil)), + Name: s.Name(), + Size: s.Size(), + Error: errNo, + Mime: mime, + Sha512: hex.EncodeToString(h.Sum(nil)), } if errNo != 0 { - v.MD5 = "" + v.Sha512 = "" v.Size = 0 } |