Public bug reported:

In file WebdavClient.py, function uploadContent, a string conversion of
header["Content-length"] is necessary.

current trunk, line 328f:

        if not content is None:
            header["Content-length"] = len(content)
        else:
            header["Content-length"] = 0


proposed patch:

        if not content is None:
            header["Content-length"] = str(len(content))
        else:
            header["Content-length"] = '0'

** Affects: python-webdav-lib
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of
DataFinderTeam, which is the registrant for Python WebDAV Library.
https://bugs.launchpad.net/bugs/854678

Title:
  uploadContent string conversion missing

Status in Python client-side WebDAV Library:
  New

Bug description:
  In file WebdavClient.py, function uploadContent, a string conversion
  of header["Content-length"] is necessary.

  current trunk, line 328f:

          if not content is None:
              header["Content-length"] = len(content)
          else:
              header["Content-length"] = 0

  
  proposed patch:

          if not content is None:
              header["Content-length"] = str(len(content))
          else:
              header["Content-length"] = '0'

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-webdav-lib/+bug/854678/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~datafinder-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~datafinder-team
More help   : https://help.launchpad.net/ListHelp

Antwort per Email an