← Back to team overview

datafinder-team team mailing list archive

[Bug 854678] Re: uploadContent string conversion missing

 

** Changed in: python-webdav-lib
     Assignee: (unassigned) => Tobias Schlauch (tobias-schlauch)

** Changed in: python-webdav-lib
   Importance: Undecided => Medium

** Changed in: python-webdav-lib
    Milestone: None => 0.4.0

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


References