summaryrefslogtreecommitdiff
path: root/community/duplicity/u1backend.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/duplicity/u1backend.patch')
-rw-r--r--community/duplicity/u1backend.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/community/duplicity/u1backend.patch b/community/duplicity/u1backend.patch
new file mode 100644
index 000000000..7aba89fbb
--- /dev/null
+++ b/community/duplicity/u1backend.patch
@@ -0,0 +1,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}