LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File bzr_webdav-ds-error400.patch of Package bzr-webdav (Project home:csa7fff:adei)

--- 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