Update upload.go

This commit is contained in:
ZizzyDizzyMC 2021-02-21 22:11:06 -05:00
parent 84b9b36d35
commit 0b39245c09
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) {
if r.Header.Get("Linx-Randomize") == "yes" { if r.Header.Get("Linx-Randomize") == "yes" {
upReq.randomBarename = true 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 { if err != nil {
upReq.contentSize = 0 upReq.contentSize = 0
} }