Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion handle_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down