From be4aadb5384fd8b97c927f3ef48383dc5b23b345 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Tue, 24 Nov 2020 15:52:15 +0300 Subject: md5 -> sha512 h2c tests fcgi tests plugin tests updated --- plugins/http/tests/uploads_test.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'plugins/http/tests/uploads_test.go') 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 } -- cgit v1.2.3