Skip to content

Commit 8fcc766

Browse files
authored
Merge pull request #208 from djw8605/use-chunked-upload
Remove content length from upload to enable chunked
2 parents 384974d + 2273cc9 commit 8fcc766

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

client/handle_http.go

-1
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,6 @@ func UploadFile(src string, dest *url.URL, token string, namespace namespaces.Na
727727
log.Errorln("Error creating request:", err)
728728
return 0, err
729729
}
730-
request.ContentLength = fileInfo.Size()
731730
// Set the authorization header
732731
request.Header.Set("Authorization", "Bearer "+token)
733732
var lastKnownWritten int64

0 commit comments

Comments
 (0)