~andidog/bzr-webdav/empty-put-request-bug

« back to all changes in this revision

Viewing changes to webdav.py

  • Committer: Vincent Ladeuil
  • Date: 2011-11-18 10:43:21 UTC
  • Revision ID: v.ladeuil+lp@free.fr-20111118104321-wk989t5ve2j7jnui
Fix range end spec for PUT requests

Show diffs side-by-side

added added

removed removed

Lines of Context:
552
552
        # the end of the range instead.
553
553
        request = PUTRequest(abspath, bytes,
554
554
                             {'Content-Range':
555
 
                                  'bytes %d-%d/*' % (at, at+len(bytes)),},
 
555
                                  'bytes %d-%d/*' % (at, at+len(bytes)-1),},
556
556
                             accepted_errors=[200, 201, 204, 403, 404, 409])
557
557
        response = self._perform(request)
558
558
        code = response.code