From eeb7c95cbb8a36cd492cba48e4818ad5f5a675a6 Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Sun, 21 Feb 2021 22:29:19 -0500 Subject: [PATCH] Update upload.go --- upload.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/upload.go b/upload.go index c8105d4..82e409c 100644 --- a/upload.go +++ b/upload.go @@ -240,8 +240,11 @@ func uploadHeaderProcess(r *http.Request, upReq *UploadRequest) { contentSize, err := strconv.ParseInt(r.Header.Get("Content-Length"), 10, 64) if err != nil { upReq.contentSize = 0 + log.Printf("error on content size conversion") } else { upReq.contentSize = contentSize + log.Printf("content size assigned") + log.Printf(upReq.contentSize) } upReq.deleteKey = r.Header.Get("Linx-Delete-Key") upReq.accessKey = r.Header.Get(accessKeyHeaderName)