fix headers

This commit is contained in:
2026-02-02 13:31:48 +02:00
parent fa8563848f
commit 8e9c270972
3 changed files with 21 additions and 20 deletions
+1 -1
View File
@@ -157,8 +157,8 @@ func (cli *Client) PutFile(ctx context.Context, filename, ref string) error {
}
filesize := fileinfo.Size()
req.ContentLength = filesize
req.Header.Set("Content-Type", "application/octet-stream")
req.Header.Set("Content-Size", strconv.FormatInt(filesize, 10))
resp, err := client.Do(req)
if err != nil {