Update upload.go

This commit is contained in:
ZizzyDizzyMC 2021-02-21 22:29:19 -05:00
parent 354714708f
commit eeb7c95cbb
1 changed files with 3 additions and 0 deletions

View File

@ -240,8 +240,11 @@ func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) {
contentSize, err := strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64) contentSize, err := strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64)
if err != nil { if err != nil {
upReq.contentSize = 0 upReq.contentSize = 0
log.Printf("error on content size conversion")
} else { } else {
upReq.contentSize = contentSize upReq.contentSize = contentSize
log.Printf("content size assigned")
log.Printf(upReq.contentSize)
} }
upReq.deleteKey = r.Header.Get("Linx-Delete-Key") upReq.deleteKey = r.Header.Get("Linx-Delete-Key")
upReq.accessKey = r.Header.Get(accessKeyHeaderName) upReq.accessKey = r.Header.Get(accessKeyHeaderName)