From 0b39245c090a32d633a99bea6cd117af1c917750 Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Sun, 21 Feb 2021 22:11:06 -0500 Subject: [PATCH] Update upload.go --- upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload.go b/upload.go index c917c06..768931b 100644 --- a/upload.go +++ b/upload.go @@ -237,7 +237,7 @@ func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) { if r.Header.Get("Linx-Randomize") == "yes" { upReq.randomBarename = true } - upReq.contentSize, err := strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64) + upReq.contentSize, err = strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64) if err != nil { upReq.contentSize = 0 }