summaryrefslogtreecommitdiffstats
path: root/dev-vcs/bzr-webdav/files/bzr_webdav-ds-error400.patch
blob: 9f4061a957dacb257a8697733a9789e0bcc88f2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- webdav/webdav.py	2012-07-14 22:33:22.000000000 +0200
+++ empty-put-request-bug/webdav.py	2012-07-14 23:49:02.000000000 +0200
@@ -798,6 +797,9 @@
 
     def append_bytes(self, relpath, bytes, mode=None):
         """See Transport.append_bytes"""
+        if not bytes:
+            return
+
         if self._range_hint is not None:
             # TODO: We reuse the _range_hint handled by bzr core,
             # unless someone can show me a server implementing