diff --git a/handle_http.go b/handle_http.go index 55c94a7..3332c38 100644 --- a/handle_http.go +++ b/handle_http.go @@ -728,7 +728,6 @@ func UploadFile(src string, dest *url.URL, token string, namespace namespaces.Na log.Errorln("Error creating request:", err) return 0, err } - request.ContentLength = fileInfo.Size() // Set the authorization header request.Header.Set("Authorization", "Bearer "+token) var lastKnownWritten int64