summaryrefslogtreecommitdiff
path: root/community/duplicity/u1backend.patch
blob: 7aba89fbb92cc2bc3822646bfd1b82c85f74e4c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
86a87,90
> 
>                 if isinstance(body, file):
>                     body.seek(0) # Go to the beginning of the file for the retry
> 
108a113,115
>             if isinstance(body, file):
>                 body.seek(0) # Go to the beginning of the file for the retry
> 
209a217
>         size = os.path.getsize(source_path.name)
213c221,222
<         headers = {"Content-Type": content_type}
---
>         headers = {"Content-Length": str(size),
>                    "Content-Type": content_type}