mirror of
https://github.com/restic/restic.git
synced 2025-08-12 16:17:41 +00:00
Use int64 for the length in the RewindReader
This commit is contained in:
@@ -119,7 +119,7 @@ func (b *restBackend) Save(ctx context.Context, h restic.Handle, rd restic.Rewin
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "NewRequest")
|
||||
}
|
||||
req.Header.Set("Content-Length", strconv.Itoa(rd.Length()))
|
||||
req.Header.Set("Content-Length", strconv.FormatInt(rd.Length(), 10))
|
||||
req.Header.Set("Content-Type", "application/octet-stream")
|
||||
req.Header.Set("Accept", contentTypeV2)
|
||||
|
||||
|
Reference in New Issue
Block a user