fix (tus): crc32 support

This commit is contained in:
MickaelK
2026-04-04 12:20:43 +11:00
parent d41e2d63f0
commit 4243116336
+1 -1
View File
@@ -609,7 +609,7 @@ func FileSave(ctx *App, res http.ResponseWriter, req *http.Request) {
return
} else if parts[0] == "sha1" {
hash = sha1.New()
} else if parts[1] == "crc32" {
} else if parts[0] == "crc32" {
hash = crc32.NewIEEE()
} else {
SendErrorResult(res, NewError("Bad Request", 400))